Pagination from server side not working

Pagination from server side not working

dyyyydyyyy Posts: 6Questions: 0Answers: 0
edited January 2013 in General
Hi,
All my datatables are working correctly, but one of them simply doesn't show pagination (whatever the number it always shows 1 page)
The server side result is like this
{"iDisplayLength":0,"iDisplayStart":0,"iColumns":0,"iSortingCols":0,"iSortColumnIndex":0,"iTotalRecords":43,"iTotalDisplayRecords":10,"aaData":[[...my data...]]}

What could be wrong ?

Thank you.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    > "iTotalDisplayRecords":10

    See: http://datatables.net/usage/server-side - iTotalDisplayRecords should only be different from iTotalRecords if there is filtering applied.

    Allan
  • dyyyydyyyy Posts: 6Questions: 0Answers: 0
    Thank you, this was exactly it.
    And thanks a lot for the whole datatables, it's a great plugin, it saved my life :).
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    :-). You are very welcome!

    Allan
This discussion has been closed.