Include filtering with first draw.

Include filtering with first draw.

Simon75Simon75 Posts: 2Questions: 1Answers: 0

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

Answers

  • Simon75Simon75 Posts: 2Questions: 1Answers: 0

    Sorry - it appears that the search.ext func is used on the first draw after all. :)

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765
    Answer ✓

    If you declare the search plugin (.ext.search.push) before initializing Datatables it will be applied at initialization.

    Kevin

This discussion has been closed.