asp.net mvc - How can I remove filter operators from kendo mvc grid -
i have kendo mvc grid datetime column.
the filters "is greater than" or "is smaller than" work on datetime cell values not "is equal to" filter.
i want remove isequal filter therefore.
how can this?
you can use filterable.operators.string option
<div id="grid"></div> <script> $("#grid").kendogrid({ columns: [ { field: "name" } ], datasource: [ { name: "jane doe" }, { name: "john doe" } ], filterable: { operators: { string: { eq: "equal to", neq: "not equal to" } } } }); </script>
using mvc wrapper can use:
.filterable(filterable => filterable .extra(false) .operators(operators => operators .forstring(str => str.clear() .startswith("starts with") .isequalto("is equal to") .isnotequalto("is not equal to") )) )
Comments
Post a Comment