datatable search work only selected rows
datatable search only checked rows. we use custom filter
var _table = $('#tblFlowdown').DataTable();
_table.columns(col).search('\\b' + txt, true).draw(); $.fn.dataTable.ext.search.push( function (settings, data, dataIndex) { if (($(_table.row(dataIndex).node()).hasClass('expFlowDown-selected'))) { return true; } else { return false; } } ); _table.columns(col).search('\\b' + txt, true).draw(); $.fn.dataTable.ext.search.pop();
but not work fine
"but not work fine" Could you be slightly more specific about the issue that you have. Many thanks!
Ideally with a link to a test case showing the issue please.
Allan
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
datatable search only checked rows. we use custom filter
var _table = $('#tblFlowdown').DataTable();
but not work fine
"but not work fine"
Could you be slightly more specific about the issue that you have. Many thanks!
Ideally with a link to a test case showing the issue please.
Allan