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

DataTables pagination problems

$
0
0
Hi,
I'm using DataTables server-side processing along with filtering, sorting, row callbacks, hidden columns, etc. The plugin is great and has worked well for the most part so far but I am having some problems getting pagination to work properly.

The first page of the DataTable always works fine with the correct number of displayed rows and the offset starting at 0. Using the pagination buttons below the table is where bad things start to occur.

With a show 10 entries, page 1, I get iDisplayLength = 10 and iDisplayStart = 0. The sInfo says "Showing 1 to 10 of 21 entries".

Loading the 2nd page things change drastically. iDisplayLength = 10 still but iDisplayStart = 010. The sInfo in addition changes to "Showing 0101 to 11 of 11 entries (filtered from 21 total entries)".

After having a look at pretty much every example, usage page, and many forum threads in the process of building this DataTable (and now troubleshooting the pagination) I am at a loss as to what would be causing this odd behavior. I would be happy to pm some of the code I have used if needed. Any insights or relevant threads would be appreciated.

Thanks in advance.

Viewing all articles
Browse latest Browse all 82027

Trending Articles



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