operatorsObject
The text of the filter operators displayed in the filter.
If
operatorsare defined manually, then the default messages will be overridden too. If you would like to control theoperatorsand still use the default messages,
then you will need to retrieve them from the Filter prototype - kendo.ui.Filter.fn.options.operators.{type}, where type can be "string", "date", "number" and "enums".
Example
<div id="filter"></div>
<script>
var data = [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
];
var dataSource = new kendo.data.DataSource({
data: data
});
$("#filter").kendoFilter({
dataSource: dataSource,
operators: {
string: {
eq: "Is equal to",
neq: "Is not equal to",
contains: "Contains"
},
number: {
eq: "Is equal to",
neq: "Is not equal to",
gt: "Is greater than"
}
},
fields: [
{ name: "age", type: "number", label: "Age" },
{ name: "name", type: "string", label: "Name" }
]
});
</script>
In this article