Current Page not working on server side

Current Page not working on server side

megc89megc89 Posts: 3Questions: 2Answers: 0

Hi guys, i am having a problem with my datatable on server side ajax source.

I can retrieve correctly my data from server and display it's on datatable, but when I clicked any page number always I get an autoincrement number page.

Any ideas?, how can I get current page selected?

Thanks very much.




This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,309Questions: 26Answers: 4,947
    Answer ✓

    The server side processing parameters are explained here:
    https://datatables.net/manual/server-side

    The draw parameter is simply a sequence number that Datatables uses when processing the responses so they are not processed out of order. What you are seeing is expected behavior.

    The start parameter is the one to look at for the page information. Its actually the first record number to display on the new page. When you click 4 the start vlue should be 30 when displaying 10 rows.

    Kevin

  • megc89megc89 Posts: 3Questions: 2Answers: 0

    ok thanks !!

This discussion has been closed.