How can I get filtered (AND paged) data?
How can I get filtered (AND paged) data?
robertbrower
Posts: 158Questions: 1Answers: 0
I use this line of code to get the filtered data from a datatable.
var aaData = settings.$dataTable._('tr', { "filter": "applied" });
I want the paging to apply so that I get only the rows that are currently displayed, based on filtering and paging.
How can I do this? Thank you very much!
This discussion has been closed.
Answers
Best option is via the new
API
. Here is a code example:This uses the
selector-modifier
with therows()
API method.Using 1.9, the answer is:
var aaData = settings.$dataTable._('tr', { "filter": "applied", "page": "current" });
It just took my some time to find the right documentation for 1.9.
The question should be closed.