change

Fired when the generated filter expression is changed.

Event Data

e.expression Object

The generated filter expression object which can be used by the datasource.

e.sender kendo.ui.Filter

The widget instance which fired the event.

Example - subscribe to the "change" event during initialization

<div id="filter"></div>
<br /><br />
<script>
  var data = [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 33 }
    ];

  var dataSource = new kendo.data.DataSource({
    data: data,
    schema: {
      model: {
        fields: {
          name: { type: "string" },
          age: { type: "number" }
        }
      }
    }
  });

  $("#filter").kendoFilter({
    dataSource: dataSource,
    change: function (e) {
        console.log(e.expression);
    }
  });
</script>
In this article
Not finding the help you need? Improve this article