Remove specific word from filter
Remove specific word from filter
luketheobscure
Posts: 20Questions: 0Answers: 0
I've got a control on my page that will show or hide columns depending on if some of the rows are all empty. Currently the way I'm handling this is with the collowing code:
[code]
// Hide rows without alerts
oTable.fnFilter('Alert');
// Show all columns
oTable.fnFilter('');
[/code]
The problem with this is if there any other filters in place (which there could be) they are also removed. Is there any way to only remove one word from the filter?
If this isn't possible, an alternative option would be to apply this filter to multiple specified columns, but I haven't made any headway on that front. I know there's a thread about multi-column filters, but I couldn't get them to work.
[code]
// Hide rows without alerts
oTable.fnFilter('Alert');
// Show all columns
oTable.fnFilter('');
[/code]
The problem with this is if there any other filters in place (which there could be) they are also removed. Is there any way to only remove one word from the filter?
If this isn't possible, an alternative option would be to apply this filter to multiple specified columns, but I haven't made any headway on that front. I know there's a thread about multi-column filters, but I couldn't get them to work.
This discussion has been closed.