Current Page not working on server side
Current Page not working on server side
megc89
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
This discussion has been closed.
Answers
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 click4
thestart
vlue should be30
when displaying 10 rows.Kevin
ok thanks !!