# KendoReact Grid Filtering Overview

The KendoReact Grid enables you to display only those Grid records which meet specified criteria.

When filtering is enabled, the Grid renders a filter row in its header. Depending on the data type of each column, the filter row displays filtering components where the user can filter string, numeric, boolean, or date data types. Each consecutive filter is added to the previous ones and reduces the subset of data.

<CtaPanelOverview></CtaPanelOverview>

## Enabling Filtering

The KendoReact Grid supports filtering in two modes:

* [Built-in State Management](https://www.telerik.com/kendo-react-ui/components/grid/filtering#using-the-built-in-state-management-for-filtering): The Grid manages its own filtering state internally.

* [Controlled Mode](https://www.telerik.com/kendo-react-ui/components/grid/filtering#using-the-filtering-in-controlled-mode): The filtering state is externally managed by handling events and updating the state accordingly.

## Using the Built-in State Management for Filtering

To enable filtering using the built-in state management mechanism, follow these steps:

1. Enable the [`autoProcessData`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#autoprocessdata) prop to allow the Grid to handle paging automatically.
2. Set the [`filterable`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#filterable) prop of the Grid to render a filter row under the column headers.
3. Set the [`defaultFilter`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#defaultFilter) prop to set initial filtering for the Grid.

The following example demonstrates how to implement filtering using the built-in state management of the KendoReact Grid.

[Demo Source](https://demos.telerik.com/kendo-react-ui/grid/filtering/built-in/func/source.txt)

## Using the Filtering in Controlled Mode

To enable numeric paging in the KendoReact Grid and use it in controlled mode, follow these steps:

1. Set the [`filterable`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#filterable) prop of the Grid to render a filter row under the column headers.
2. Set the [`filter`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#filter) option of the Grid. Filtering conditions are declared as [`FilterDescriptors`](https://www.telerik.com/kendo-react-ui/components/dataquery/api/filterdescriptor) or [`CompositeFilterDescriptor`](https://www.telerik.com/kendo-react-ui/components/dataquery/api/compositefilterdescriptor).
3. Handle the [`onFilterChange`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#onfilterchange) or [`onDataStateChange`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#ondatastatechange) event of the Grid.
4. Filter the data on the client using built-in methods like [filterBy](https://www.telerik.com/kendo-react-ui/components/dataquery/api/filterby) or [`process`](https://www.telerik.com/kendo-react-ui/components/dataquery/api/process). The data can also be filtered on the server using event parameters.

> The [`filterBy`](https://www.telerik.com/kendo-react-ui/components/dataquery/api/filterby) method is recommended for `onFilterChange` event. The [`process`](https://www.telerik.com/kendo-react-ui/components/dataquery/api/process) method is recommended when using the `onDataStateChange` event.

## Customizing the Filter Operators

The Grid allows you also to customize the operators for the `numeric`, `text`, and `date` filter types by using the [`filterOperators`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridfilteroperators) property. The Grid uses the first operator from each type as its default operator. The Boolean filter types always use the `equal` operator.

The following example demonstrates how to restrict available filter operators per column type using the `filterOperators` property.

[Demo Source](https://demos.telerik.com/kendo-react-ui/grid/filtering/operators/func/source.txt)

## KendoReact Grid Filtering APIs

* [FilterDescriptors](https://www.telerik.com/kendo-react-ui/components/dataquery/api/filterdescriptor)
* [onDataStateChange](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops#ondatastatechange)
* [API Reference of the Grid](https://www.telerik.com/kendo-react-ui/components/grid/api/gridprops)
