The KendoReact Data Grid enables you to display only those Grid records which meet specified criteria.
To enable filtering:
- Set the
filterableprop of the Grid which will render a filter row under the column headers.
- Set the
filteroption of the Grid. The filtering conditions are declared as
- Handle the
onDataStateChangeevent of the Grid. The
onDataStateChangeevent is recommended when the Grid will have other data operations as it provides the complete
dataStatein a single event.
- Filter the data on the client by using our built-in methods filterBy or process. The data can also be filtered on the server by making a request using the event parameters.
Each consecutive filter is added to the previous ones and reduces the subset of data.
By default, when filtering is enabled, the Grid renders a filter row in its header. Based on the type of data the columns contain, the filter row displays filtering components in each column header where the user can filter string, numeric, boolean, or date data types.
columnMenu allows using the GridColumnMenuFilter or the GridColumnMenuCheckboxFilter component to filter the Grid. This provides menu like filtering functionality inside a popup container for the column.
This example showcase how to filter a column using the
You can use the KendoReact Filter component to build complex filter expressions and filter the data inside the Grid.
You can use an external Input to filter the Grid.
filterCell property of the GridColumn enables the full customization of the filter cells.
The following example demonstrates how to implement a KendoReact DropDownList component for filtering the products by category and price range.
The Grid allows you to customize the operators for the
date filter types by using the
filterOperators property which accepts
GridFilterOperators. The Grid uses the first operator from each type as its default operator. The Boolean filter types always use the