Primeng: Custom filter function method to DataTable

Created on 28 Mar 2017  路  2Comments  路  Source: primefaces/primeng

I have a PrimeNg DataTable whose one column has as cell entry per cell a table of string(presented as html list using Templating and ngFor directive ). Then when filtering using filterMatchMode:'in' it doesn't work at all and when using the other filterMatchModes such contains, I get the following error: e.toLowerCase is not a function. (In 'e.toLowerCase()', 'e.toLowerCase' is undefined).
It would be nice to review your implementation of the 'filter'-methode to support such a use case or at least to give to possibility to implement our own filter methode on a PrimeNG DataTable.

Most helpful comment

i also need a custom filter method

All 2 comments

i also need a custom filter method

p-dataTable is deprecated and will be removed in favor of the new p-table (aka TurboTable) of 5.1.0 so closing the issue. Please try the new p-table once 5.1.0 is released.

Was this page helpful?
0 / 5 - 0 ratings