operators.numberObject
The texts of the filter operators displayed for columns bound to number fields.
Omitting an operator will exclude it from the DropDownList with the available operators.
Example - set number operators
<div id="filter-menu">(age filter)</div>
<br /><br />
<div id="grid"></div>
<script>
var data = [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
];
var dataSource = new kendo.data.DataSource({
data: data,
schema: {
model: {
fields: {
age: { type: "number" }
}
}
}
});
$("#filter-menu").kendoFilterMenu({
dataSource: dataSource,
field: "age",
operators: {
number: {
eq: "Equal to",
neq: "Not equal to"
}
}
});
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age", type: "number" }
],
dataSource: dataSource
});
</script>
In this example only two operators would be displayed in the DropDownList - "Equal to" and "Not equal to".
operators.number.eqString
(default: "Is equal to")
The text of the "equal" filter operator.
operators.number.neqString
(default: "Is not equal to")
The text of the "not equal" filter operator.
operators.number.isnullString
(default: "Is null")
The text of the "isnull" filter operator.
operators.number.isnotnullString
(default: "Is not null")
The text of the "isnotnull" filter operator.
operators.number.gteString
(default: "Is greater than or equal to")
The text of the "greater than or equal" filter operator.
operators.number.gtString
(default: "Is greater than")
The text of the "greater than" filter operator.
operators.number.lteString
(default: "Is less than or equal to")
The text of the "less than or equal" filter operator.
operators.number.ltString
(default: "Is less than")
The text of the "less than" filter operator.
In this article