l-lin / angular-datatables

DataTables with Angular
https://l-lin.github.io/angular-datatables/
MIT License
1.57k stars 481 forks source link

External search is not working #1715

Closed rupalikombade closed 1 year ago

rupalikombade commented 1 year ago

I have written external search filter as below

filter(searchstatus){ $.fn['dataTable'].ext.search.push((data:any) => { console.log(data[0]) const status = data[0] ; // use data for the id column if (searchstatus == status ) { return true; } return false; }); }

console.log(data[0]) is printing undefined, and hence getting blank results in datatable

Why I am getting data[0] undefined here. I am searching for first column so I have written data[0], and same is provided in documentation example.

shanmukhateja commented 1 year ago

Hi,

Please use the Discussions section for support requests.

Also please provide a reproducible repo to investigate.