Marco Maroni  SPOT
Marco Maroni SPOT

Reputation: 49

KendoUI Grid how to disable only some filters operators

I need to disable only some filter (e.g. isnotnull or isnull) globally on all my grids, without redefine all operators that I want to preserve. How can I do that?

Upvotes: 0

Views: 408

Answers (1)

Marco Maroni  SPOT
Marco Maroni SPOT

Reputation: 49

You can globaly set to undefined the filter you want to hide, like this:

kendo.ui.FilterMenu.fn.options.operators.number.isnotnull = undefined;
kendo.ui.FilterMenu.fn.options.operators.string.isnotnull = undefined;
kendo.ui.FilterMenu.fn.options.operators.date.isnotnull = undefined;
kendo.ui.FilterMenu.fn.options.operators.enums.isnotnull = undefined;

Upvotes: 2

Related Questions