Include filtering with first draw.
Include filtering with first draw.

Is it possible to run any custom logic for filtering supplied using .ext.search.push without causing the table to draw twice?
i.e. once for the initial init and display, followed by a .draw() call?
In other words, I want the very first display of the grid to have already had some rows filtered out.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Sorry - it appears that the search.ext func is used on the first draw after all.
If you declare the search plugin (.ext.search.push) before initializing Datatables it will be applied at initialization.
Kevin