How to get all data from a table using server side processing ?
How to get all data from a table using server side processing ?
iordanougiannis
Posts: 7Questions: 3Answers: 1
I have a table that is populated by data using server side processing.
I want to get all the data, so I tried using rows().data()
but I get only the data of the current page.
How can I get all the data from all the pages ?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The purpose of server side processing is for the ajax response to contain only the rows that will be displayed. This is the only data in the client and the only data that things like
rows().data()
have access to.If you want to use server side processing then you will need a separate ajax request , using the jQuery Ajax method, to get all the desired data form the table. This would be independent of the Datatables ajax config and request.
Kevin