Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Existing data filter on ajax loaded data

$
0
0

Is there a way to filter (column and custom) loaded data across pages without making a call to ajax end point? I have implemented the sample -column filter as below...
var table = $("#" + dataTable).DataTable();
$("#" + dataTable + " thead").on('keyup', ".column_search", function () {
const l = this.value.length;
if (l === 0 || l > 3) {
table
.column($(this).parent().index())
.search(l === 0 ? "" : this.value)
.draw();
} else {
return false;
}
});
It works but the issue is that it makes a call to ajax end point. Please suggest a way to filter fetched dataset without making a call back.


Viewing all articles
Browse latest Browse all 2364

Trending Articles