search.fields Array

Defines a list of fields which will be included in the search. If values for the property are not defined the grid will search in all column fields.

Example - specify which fields will be included in the search

<div id="grid"></div>
  columns: [
    { field: "name" },
    { field: "age" }
  dataSource: [ { name: "Jane", age: 30 }, { name: "John", age: 33 }],
  search: {
    fields: ["name"] // Or, specify multiple fields by adding them to the array, e.g ["name", "age"]
In this article