server-side pagination not working

server-side pagination not working

gawrrellgawrrell Posts: 2Questions: 2Answers: 0

Hello,
I'm trying to implement the jquery datatables on a php project using the server-side processing, but the pagination is not working and I have no errors in the firebug console.

I've attached some photos for better understanding.
01.png - is the html page code.
02.png - the post parameters viewed in the debug console.
03.png - the json response from server
err.png - the page view, you can easly see that the pagination links are not there and the Next/Previous buttons are disabled.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin
    Answer ✓

    Image 3 shows that recordsFiltered is wrong. From the documentation:

    Total records, after filtering (i.e. the total number of records after filtering has been applied - not just the number of records being returned for this page of data).

    If there is no filter, it should also be 23.

    Allan

This discussion has been closed.