filterMenuOpen

Fired when the grid filter menu is opened, after the animations are completed.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.container jQuery

The jQuery object representing filter menu form element.

e.field String

The field of the column for which the filter menu is opened.

e.sender kendo.ui.Grid

The widget instance which fired the event.

Example - subscribe to the "filterMenuOpen" event and focus second input

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "name" }
  ],
  dataSource: [
    { name: "Jane Doe"},
    { name: "John Doe"}
  ],
  filterable: true,
  filterMenuOpen: function(e) {
    if (e.field == "name") {
      e.container.find(".k-textbox:last").focus();
    }
  },
});
</script>

Example - subscribe to the "filterMenuOpen" after initialization and focus second input

<div id="grid"></div>
<script>
function grid_filterMenuOpen(e) {
  if (e.field == "name") {
    e.container.find(".k-textbox:last").focus();
  }
}

$("#grid").kendoGrid({
  columns: [
    { field: "name" }
  ],
  dataSource: [
    { name: "Jane Doe"},
    { name: "John Doe"}
  ],
  filterable: true,
});

var grid = $("#grid").data("kendoGrid");
grid.bind("filterMenuOpen", grid_filterMenuOpen);
</script>
In this article