How do I apply customs filters and redraw?
How do I apply customs filters and redraw?
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
Call
draw()
to apply the current filters. To remove a custom filter you need to use the arraysplice
method (or any other form of array element removal in Javascript such aspop
etc).Allan