Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82709

Reset the scroll position to top as default for page navigation?

$
0
0

Link to test case: https://datatables.net/examples/basic_init/scroll_xy.html
Description of problem:
I wonder if it would be more intuitive to display the next page with the position at the top when switching to a different page number?

In the link, set the 10 entries per page to 25, and scroll to bottom and then click Page 2. The table stays at where it was.
So if someone navigate through the table pages, they have to scroll up for every page navigation.

It would be nice if this behavior were the default and if someone wanted to keep the same position, they could control it.
(Personally, I feel it's strange to keep the same position after page navigation.)

Like this forum, navigate from https://datatables.net/forums/discussions to https://datatables.net/forums/discussions/p2 will return to the top as well.


Viewing all articles
Browse latest Browse all 82709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>