Pagination and ajax function
Pagination and ajax function
Hi, I have a quick question about the pagination behaviour.
Fiddler sample: https://jsfiddle.net/nm1fv2nr/8/
As you can see in the provided fiddler sample, the pager still shows 1 page even if the returned object has both properties
"recordsTotal" and "recordsFiltered" set to 20000.
What am I doing wrong?
How do I manage the result data in order to get the pager work correctly?
Thanks in advance for your help.
Best Regards
Giovanni
This question has an accepted answers - jump to answer
Answers
Two issues:
serverSide
option wasn't set, so the server-side processing parameters being returned were ignored.draw
value being returned was incorrect - its just a counter. See the docs here.Updated example: https://jsfiddle.net/nm1fv2nr/9/
Allan
Thanks for your tips.
Now it works correctly.