i have requirement in paging.. when ever i click on next event in data table
i have requirement in paging.. when ever i click on next event in data table
Vidyasagar
Posts: 1Questions: 1Answers: 0
when ever i click on next in data table one ajax call wil happen but if i click on previous it should not happen but on click of previous also ajax call is triggering ,it should not happen!!!!
This discussion has been closed.
Answers
Why? "Previous" and "Next" are both requesting a page of data.
I'm presuming that you think that DataTables should be caching the previously seen data? Perhaps you are right - that is one option. But I decided that when server-side processing is being used, it would always make a request to the server to take account of any updated data.
If you do want some kind of page caching, have a look at this example.
Also - its worth considering if you actually need server-side processing or not (you don't actually say if you are using it or not, and you haven't provided a test case as required in the forum rules, but based on your description, I presume you have
serverSide
enabled).Allan