pagination go to top of the table on page change

pagination go to top of the table on page change

mehtimehti Posts: 35Questions: 13Answers: 0

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

This discussion has been closed.