Is it possible to use a NOT LIKE conditional when filtering DataTable?
The DataTable is not populated via an ajax call, it is just populated from a simple query looped over in the page.
I want to be able to enter something like this: "W-2%" in the search box and only show items that do not start with "W-2".
So basically I am doing this: where name NOT LIKE 'W-2%'
DataTable Js
$('#inventoryLocationTable').DataTable( {
"iDisplayLength": 20,
"order": [[ 1, "asc" ]],
"aLengthMenu": [[10, 25, 50, 100, 500, 1000], ["10 Per Page", "25 Per Page", "50 Per Page", "100 Per Page", "500 Per Page", "1000 Per Page"]]
});
Is this possible? Thanks.
filter()docs datatables.net/reference/api/filter%28%29