Performing a search which returns no results.
Performing a search which returns no results.
Hey,
let's say I have a group of buttons the user can click on to filter the rows of the datatable.
Example case:
I have 2 buttons. When I click on any of them, it will be selected
.
I have an handler on the click event (of the buttons) which performs a search with the concatenated values of all the selected buttons
.
If only the first one is selected, the search will be .search('0', true)
. If only the second one is selected, the search will be .search('1', true)
. If both are selected, the search will be .search('0|1', true)
Now, if none are selected, the search is .search('', true)
and every results are shown while I would want to show no results.
Is there a way to make that the table shows no result? (other than providing an arbitrary non existing value to the search method)
Thanks.