Edit this page

filterable.operators.date Object

The texts of the filter operators displayed for columns bound to date fields.

Omitting an operator will exclude it from the DropDownList with the available operators.

Example - set date operators

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "date", format: "{0:yyyy-MM-dd}" }
  ],
  dataSource: {
    data: [
      { date: kendo.parseDate("2000-10-10") },
      { date: new Date() }
    ],
    schema: {
      model: {
        fields: {
          date: { type: "date" }
        }
      }
    }
  },
  filterable: {
    operators: {
      date: {
        gt: "After",
        lt: "Before"
      }
    }
  }
});
</script>

In this example only two operators would be displayed in the DropDownList - "Equal to" and "Not equal to".