I\'ve been trying to get this working with no luck. I\'ve been referencing these resources for help:
http://swimlane.github.io/ngx-datatable/#filter
https://github.com/swiml
here is an example of your code with multiple columns filtering:
updateFilter(filter: string): void {
const val = filter.trim().toLowerCase();
this.filteredList = this.items.slice().filter((item: any) => {
let searchStr = '';
for (let i = 0; i < this.gridProperties.FilteredColumns.length; i++) {
searchStr += (item[this.gridProperties.FilteredColumns[i]]).toString().toLowerCase();
}
return searchStr.indexOf(val) !== -1 || !val;
});
}
If I did not made any errors, it should work correctly.