Pagination problem

Pagination problem

aierntaiernt Posts: 1Questions: 1Answers: 0

Here is the scenario.
I load up a data table without any issue and the default page size is set to 20 and I have pagination showing 5 pages. I am using server side processing. I change the page size to 60. This re-renders the table with 60 elements and now I have 2 pages. I use the pagination buttons to change to page 2. At this point I change the page size to 40. When the data table redraws, it's showing data from page 2, but the pagination bar is highlighted on page 3. I'm using Datatables 1.9. Any help with this would be much appreciated.

thanks,
Rob

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    when ever my users change page size, I just recalculate and dump them back on page 1

This discussion has been closed.