Edit this page

filterable.operators.enums Object

The texts of the filter operators displayed for columns which have their values option set.

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

Example - set enum operators

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category", values: [
        {text: "Beverages", value: 1 },
        {text: "Food", value: 2 }
      ]
    }
  ],
  dataSource: [
    { productName: "Tea", category: 1 },
    { productName: "Ham", category: 2 }
  ],
  filterable: {
    operators: {
      enums: {
        eq: "Equal to",
        neq: "Not equal to"
      }
    }
  }
});
</script>

filterable.operators.enums.eq String (default: "Is equal to")

The text of the "equal" filter operator.

Example - set the enum "equal" operator

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category", values: [
        {text: "Beverages", value: 1 },
        {text: "Food", value: 2 }
      ]
    }
  ],
  dataSource: [
    { productName: "Tea", category: 1 },
    { productName: "Ham", category: 2 }
  ],
  filterable: {
    operators: {
      enums: {
        eq: "Equal to"
      }
    }
  }
});
</script>

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

The text of the "not equal" filter operator.

Example - set the enum "not equal" operator

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category", values: [
        {text: "Beverages", value: 1 },
        {text: "Food", value: 2 }
      ]
    }
  ],
  dataSource: [
    { productName: "Tea", category: 1 },
    { productName: "Ham", category: 2 }
  ],
  filterable: {
    operators: {
      enums: {
        neq: "Not equal to"
      }
    }
  }
});
</script>

filterable.operators.enums.isnull String (default: "Is null")

The text of the "isnull" filter operator.

Example - set the enum "isnull" operator

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category", values: [
        {text: "Beverages", value: 1 },
        {text: "Food", value: 2 }
      ]
    }
  ],
  dataSource: [
    { productName: "Tea", category: 1 },
    { productName: "Ham", category: 2 }
  ],
  filterable: {
    operators: {
      enums: {
        isnull: "Null"
      }
    }
  }
});
</script>

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

The text of the "isnotnull" filter operator.

Example - set the enum "isnotnull" operator

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category", values: [
        {text: "Beverages", value: 1 },
        {text: "Food", value: 2 }
      ]
    }
  ],
  dataSource: [
    { productName: "Tea", category: 1 },
    { productName: "Ham", category: 2 }
  ],
  filterable: {
    operators: {
      enums: {
        isnotnull: "Not null"
      }
    }
  }
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy