Problem in Server Side pagination

Problem in Server Side pagination

gauravf4ugauravf4u Posts: 4Questions: 0Answers: 0
edited July 2012 in DataTables 1.9
Hi ,

I am facing an issue with server side pagination where in I have a text field where in the user can give the results limit to be displayed in the page.I am using server side datatables.If the user uses the default iDisplayLength limit set in the initialization all works fine,but problem comes when user gives his number in the field.

1) First time user types 10 in the text field eg results are displayed fine and the sInfo shown properly
eg
Showing 1 to 10 of 217 entries
FirstPrevious12345NextLast

2)User clicks on the next link and next 10 records are displayed but sInfo changes to below text.Seeing the request using firebug shows iDisplayStart value = 010 instead of 10;
This is strange as ideally sInfo should be,"showing 10 to 20 of 217 entries".
Please let me know if anyone knows for this.I am using datatables 1.9
Showing 0101 to 217 of 217 entries
FirstPrevious12345NextLast

Initialization code:

"bPaginate": true,
"bLengthChange" : false,
"sPaginationType": "full_numbers",
"iDisplayLength": 50,
"iDisplayStart": 0,


Regards
Gaurav

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds like your server-side process is returning strings rather than integers for iDisplayRecords etc. If you run your table through the debugger, we can confirm that.

    Allan
This discussion has been closed.