Pagination next button is not working, generates url with start parameter value 010 instead of 10
Pagination next button is not working, generates url with start parameter value 010 instead of 10
![martinfeher](https://secure.gravatar.com/avatar/f2f675cc74497422f8fed427225cca3c/?default=https%3A%2F%2Fvanillicon.com%2Ff2f675cc74497422f8fed427225cca3c_200.png&rating=g&size=120)
After clicking on the next pagination button, pagination is not working. It generates ajax url with start parameter value 010 instead of 10.
It is using server side processing. Datatables version 1.13.1
This question has accepted answers - jump to:
Answers
Something somewhere is treating one of the paging numbers as a string. Can you use the debugger to give me a trace please - click the Upload button and then let me know what the debug code is.
Allan
Hi Allan, the javascript snippet was run on the page. The image with a result is in the attachment.
I had problems with getting the trace, there was no Upload button. How is it possible to get the trace from the debugger and add it here? Is there any info we can get to fix it?
Thanks,
When you click
Upload configuration data
you don't get the Upload button? You should see this after clickingUpload configuration data
.Then you will get the ID for Allan.
Kevin
After clicking on Upload configuration data there is the message below with a link, no Upload button. Is that the information needed? Thanks
Upload complete - ihosij
Your debug code is shown above...
Thank you. In the state that is being loaded it has:
That's the problem - the state being restored has those two values as strings. They must be integers. In your
fnStateLoadCallback
you could useparseInt()
to make sure you pass back integers.Allan
It has fixed the problem. Thank you
I have same problem with DataTables 1.13.4.. but looks like fnStateLoadCallback is not available in fnStateLoadCallback. how i can resolve this issue
I did update Data tables to new version but I can reproduce this issue
stateLoadParams
can be used. Please link to a test case showing the issue if you are unable to resolve the issue.Allan