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

sInfo reporting wrong _START_ value when iDisplayLength is changed...

$
0
0
Hi Allan / any other life saver out there :)

If I go to this example:
http://www.datatables.net/release-datatables/examples/basic_init/alt_pagination.html
the default is to show 10 entries per page. If I go to page 6 on the page buttons, I see the expected info:
Showing 51 to 57 of 57 entries.

However, if I change the _iDisplayLength from 10 to 50 while still on page 6, then:
1) the table is reloaded (expected)
2) the pagination controls shows that I'm now on page 2 (expected since record 51 is > new page length of 50)
3) the info shows: Showing 8 to 57 of 57 entries. (NOT expected)

Since I'm on page 2 with page size of "50" I'd have expected the info in #3 to show:
Showing 51 to 57 of 57 entries

Note that when I click the page "1" button, it correctly shows me the info:
Showing 1 to 50 of 57 entries.

I've been browsing the forums and seen some posts back in 2010 related to this, and other forum answers saying to look at using other plugins but this to me seems to be a bug.

Using the datatables.net example above, how is this corrected?

Thanks in advance for any time / help :)
lili

Viewing all articles
Browse latest Browse all 82117

Trending Articles



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