Prevent multiple ajax requests in server side pagination
Prevent multiple ajax requests in server side pagination
rashidali
Posts: 2Questions: 2Answers: 0
In server side pagination, multiple ajax calls are made rather than one at a time. I want to fetch 10 records first and so on but there are many ajax requests are made.
I have tried too many different ways but cant solve the problem.
How to prevent ajax to make multiple requests in server side processing?
Data table is initialized under document.ready()
This discussion has been closed.
Answers
Hi @rashidali ,
With
serverSide
, DataTables will only make Ajax requests when the data is required for a draw. You can verify this by looking at console's network tab for this example page.If you're seeing additional traffic, it will be something to do with your initialisation. We're happy to take a look. As per the forum rules, if you could link to a running test case showing the issue we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin