"Destroy" fnFilter
"Destroy" fnFilter

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?
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?
This discussion has been closed.
Replies