Change Grid MultiFilter operator not working

0 Answers 110 Views
Filter Grid
SCH
Top achievements
Rank 1
SCH asked on 03 Mar 2022, 07:35 AM

I changed the value of checkboxes of a column filter, because I use a custom template in the column. I need to change the operator from 'equal' to 'contains', but if I change the grid won't show the filters.

Operator changed to "contains":

Without changed the operator:

I use this method to change operator (this method subscribed to grid's Filter event):

function gridFilter(e) {
    if (e.filter) {
        e.filter.filters.forEach(function (f) {
            f.operator = "contains";
        })
    }
}

What did I wrong? Why does not work the multifilter with "contains" operator?

 

 

No answers yet. Maybe you can help?

Tags
Filter Grid
Asked by
SCH
Top achievements
Rank 1
Share this question
or