How could I make visible filtered rows?
How could I make visible filtered rows?
I have the following jQuery DataTable
ID | IP Address |Channel |Format
1 |192.168.9.41 |News 1 | HD
2 |192.168.9.45 |Sports 1 | HD
3 |192.168.9.47 |Movie 1 | SD
4 |192.168.9.48 |ESPN HD | HD
5 |192.168.9.49 |Talk | SD
And applied the filter, let's say 'HD'. So, the data in table is as follow,
ID | IP Address |Channel |Format
1 |192.168.9.41 |News 1 | HD
2 |192.168.9.45 |Sports 1 | HD
4 |192.168.9.48 |ESPN HD | HD
The code to do that is below:
$scope.filterValue = function(){
var table = $('#poolDetail').DataTable();
table.search($scope.currentFilter).draw();
}
After this filter, I need to include the Channel 'Talk' that was hidden by filter.
So, after filtering, I need to add some rows that are not longer visibles because they did not match the initial filter but will match the second one I need to apply manually.
Could someone help on that?
Thanks