How do I apply customs filters and redraw?

How do I apply customs filters and redraw?

snagnitssnagnits Posts: 4Questions: 2Answers: 0
edited January 2016 in DataTables 1.10

Hello,

I've been working with getting a custom filter working, but I'm completely uncertain how I need to go about doing it.. From my understanding, what I've done will work, but it's certainly not...

Here's a mockup of what I'm working with. Basically, hide all rows that contain a string in column 2 aData[1]
http://live.datatables.net/layafebu/1/

Am I missing something here? Hopefully, I'm just being a potato :P

What's the correct way to apply and pop filters off? I need search to work, which from what I can tell, complicates things.

Answers

  • allanallan Posts: 61,892Questions: 1Answers: 10,144 Site admin

    Call draw() to apply the current filters. To remove a custom filter you need to use the array splice method (or any other form of array element removal in Javascript such as pop etc).

    Allan

This discussion has been closed.