Filter Grid as You Type

Your project might require you to filter the Grid as the user types.

To achieve this behavior, provide for the following requirements:

  • Enable the row filtering mode.
  • Use a custom filter cell template for the desired Grid column.
  • The purpose of the filter cell template is to attach a keydown or keypress event handler to the textbox (args.element) and, within this handler, to trigger the change event of the textbox. The change event will trigger the filtering functionality of the Grid.
  • Change the default "eq" operator of the column with "contains", "startswith" or any other supported operator.

The following example demonstrates how to filter the Grid on the fly, as the user types in the filter row textbox.

    <div id="grid"></div>


          dataSource: products,
          filterable: {
            mode: "row"
          height: 400,
          columns: [{
            field: "ProductName",
            title: "Product Name",
            filterable: {
              cell: {
                operator: "contains",
                template: function (args) {
                  args.element.css("width", "90%").addClass("k-textbox").keydown(function(e){
                showOperators: false

      var products = new{
        schema: {
          model: {
            id: "ProductID",
            fields: {
              ProductName: { type: "string" }
        transport: {
          read: {
            url: "//",
            dataType: "jsonp"


See Also

For more runnable examples on the Kendo UI Grid, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article