For certain types of data in my grid, I need to define custom filter operators, e.g.:
updateOrAddFilter(fieldKey, {
field: fieldKey, operator: function (item) {
const nItem = normalize(item);
const nValue = normalize(value);
return nItem && nItem.includes(nValue);
}
});
The updateOrAddFilter function then browses through the all the filters currently applied to the grid's dataSource, replaces old current-column filters with the new one and keeps all the other-column ones, and updates the grid's dataSource as such:
grid.dataSource.filter({ logic: "and", filters: updatedFilters });
Why is this happening? How can I fix it? Thanks in advance.