How to load the datatable data via ajax??
How to load the datatable data via ajax??
rajaaa
Posts: 21Questions: 10Answers: 2
I have 1000 of records in my table. But i want to get the each page data ie., 10 records on demand(on page click). Because now i want to wait until the 1000 records load in the DataTable instead of that on clicking the each page the 10 records want to fetch from the datatable on each page visit..! Is there any features in dataTable for this..
This discussion has been closed.
Answers
It's hard to understand what you're talking about. But if you mean server-side pagination, then yes, DataTables supports this quite well.
https://datatables.net/manual/server-side
Here is all of the information you need to create pagination on the server side. Basically, data tables sends the server all the information it needs to know in order to render the page the user is looking at. After that, the server is responsible for sending the information back.
Thanks #dimgl got an solution by using this
https://datatables.net/examples/server_side/simple.html