Change iDisplayStart on number page

Change iDisplayStart on number page

2ur1st2ur1st Posts: 4Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
Hello, I use and I really like it, but ran into a problem that the pagination pass parameters to the server and iDisplayLength and iDisplayStart, for example,
first page of the table settings { iDisplayLength = 10 and iDisplayStar = 0; }
for second page { iDisplayLength = 10 and iDisplayStar = 10; },

but function waits Options
first page of the table settings { iDisplayLength = 10 and iDisplayStar = 1; }
for second page { iDisplayLength = 10 and iDisplayStar = 2; },
for three page { iDisplayLength = 10 and iDisplayStar = 3; },

how to solve the problem, thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Three options:

    1. Modify Datatables

    2. Use fnServerData to modify the request to the server

    3. Modify the server code to either expect what is sent, or multiple the two numbers together.

    Allan
  • 2ur1st2ur1st Posts: 4Questions: 0Answers: 0
    understood Allan, I will use the version 3
This discussion has been closed.