"Destroy" fnFilter

"Destroy" fnFilter

MrRichardaMrRicharda Posts: 2Questions: 0Answers: 0
edited July 2012 in General
Hello,

I'm new in using DataTables (using version 1.9.2), but I really like it a lot and searched this forum for a solution already, but didn't really find one.

I have one column which simply contains a true or false. I also have put a botton on the site, which activates the filter, when being clicked.
The filter is set to:

oTable.fnFilter('false', 1);

This works as I expected and only the rows containing "false" are being shown.

When the user clicks the botton again, I want to deactivate the filter, so everything is visible again. I tried using fnClearTable, but the redrawing is visibly slower then the drawing that happens when I activate the filter. Is there a possiblity to just deactivate the filter again, so everything is as it was before?

Replies

  • MrRichardaMrRicharda Posts: 2Questions: 0Answers: 0
    Please delete this post, I found my error and I did a silly mistake. I was trying to just do the filter with an empty string, but I filtered to the wrong column. Sorry for that post here.
This discussion has been closed.