[IgxGrid] - How to change filter operator per column programmatically? #12299
Replies: 1 comment
-
Hi @mddifilippo89, If you’d like to modify the default filter operation for a given filtering operand, that is the first one appearing in the list, you could create a custom filtering operand. Sample code and a demo can be found in our documentation here. Since your requirement is to essentially perform a reorder of the
And an object of this class has to be assigned to the target column’s filters input:
Here is a small sample demonstrating this. The custom filtering operand and consequently the custom order will be used for all filter modes – quick, excel style and advanced filtering. |
Beta Was this translation helpful? Give feedback.
-
Question
How to change filter operator per column programmatically? eg. Great Than, Starts With
eg.
Contains - is default for string columns.
Equals - is the default for numeric columns
Beta Was this translation helpful? Give feedback.
All reactions