Existing data filter on ajax loaded data

Existing data filter on ajax loaded data

SKNZSKNZ Posts: 1Questions: 1Answers: 0
edited May 2021 in DataTables 1.10

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.

Answers

This discussion has been closed.