How to Filter and Draw?
How to Filter and Draw?
nenomaz
Posts: 3Questions: 1Answers: 0
Hi!
I need to filter records of a table with the metod .filter() and next redraw the table with draw(). How to do it?
DataTables v. 1.10.3
This discussion has been closed.
Answers
If you mean "Filter the table based on a custom input and redraw:" just look at the docs:
https://datatables.net/reference/api/draw
I need a sequence like this that works:
filter()
will filter the result set - not the data contained in the table. The documentation specifically states this:The only way to use a custom function to apply a search to a table at this time is to use a search plug-in.
The ability to use a custom function in
search()
will be introduced in the next major version of DataTables.Allan
Thank you Allan, I'll try it :-)