smartBox.search

Fired when the user performs a search in the SmartBox Search mode. Calling e.preventDefault() will prevent the default search behavior.

Example - handle search event

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "ProductName" },
    { field: "UnitPrice" }
  ],
  dataSource: {
    data: [
      { ProductName: "Tea", UnitPrice: 10 },
      { ProductName: "Coffee", UnitPrice: 15 }
    ]
  },
  search: {
    fields: [{ name: "ProductName", operator: "contains" }]
  },
  toolbar: ["smartBox"],
  smartBox: {
    search: function(e) {
      console.log("Search value:", e.searchValue);
    }
  }
});
</script>
In this article
smartBox.search
Not finding the help you need?
Contact Support