operators.number Object

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.eq String (default: "Is equal to")

The text of the "equal" filter operator.

operators.number.neq String (default: "Is not equal to")

The text of the "not equal" filter operator.

operators.number.isnull String (default: "Is null")

The text of the "isnull" filter operator.

operators.number.isnotnull String (default: "Is not null")

The text of the "isnotnull" filter operator.

operators.number.gte String (default: "Is greater than or equal to")

The text of the "greater than or equal" filter operator.

operators.number.gt String (default: "Is greater than")

The text of the "greater than" filter operator.

operators.number.lte String (default: "Is less than or equal to")

The text of the "less than or equal" filter operator.

operators.number.lt String (default: "Is less than")

The text of the "less than" filter operator.

In this article
Not finding the help you need?