pagination go to top of the table on page change
pagination go to top of the table on page change
Hi all,
I know this has been asked multiple times and I have actually managed to find all different versions of this question, however all of the solutions (on this page & google) use legacy datatable library.
I would appreciate if someone could share solution using new datatables.
The problem is simple when user changes page DataTable should scroll to the top of the table automatically.
Here is a list of legacy solutions:
1) http://datatables.net/forums/discussion/158/x#Item_17
2) http://datatables.net/forums/discussion/5426/go-to-top-page-on-page-navigation-button-click/p1
3) https://datatables.net/forums/discussion/18161/pagination-go-to-top-of-the-table-after-button-clicking
I can make it work using suggestions above, I just want to make sure there isn't any easier solution with the latest version of datatable library
Many thanks
This question has an accepted answers - jump to answer
Answers
The one from the first link appears to work without modification for me. Change the page size to be 25 and then change the page using the paging controls.
It should probably be updated to use the new API: http://live.datatables.net/tiruxuvu/2/edit
Allan