# KendoReact Grid State Management

The KendoReact Grid provides multiple options for managing its state. You can control the Grid state by passing the respective state properties like `filter`, `sort`, `select`, etc., or leverage its built-in state management mechanism.

## Controlling the Grid State

To control any of the Grid's state properties, pass the respective property and it will always take precedence over the internal state management.

The following example demonstrates controlled state management, where all Grid state (filter, sort, group, page, selection, and edit) is managed externally through individual state variables and event handlers.

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

## Built-in State Management

By default, the Grid manages its state internally. It is enough to enable the respective feature like `filterable`, `sortable`, or `selectable`, and the Grid will utilize its built-in state management, which works out of the box with the [`autoProcessData`](https://www.telerik.com/kendo-react-ui-develop/components/grid/api/gridprops#autoprocessdata) property enabled.

You can still provide a default value by passing a `default%STATE_PROP%` property to the Grid, or keep track of the changes through the respective `on%STATE_PROP%Change` event.

> The built-in state management does **not** work when using the Grid in [RSC Mode](https://www.telerik.com/kendo-react-ui-develop/components/grid/rsc-mode).

The following example demonstrates how to use the Grid's built-in state management with `autoProcessData` enabled for sorting, filtering, paging, and selection without manually tracking state.

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

## Suggested Links

* [API Reference](https://www.telerik.com/kendo-react-ui-develop/components/grid/api/gridprops)
* [Local Data Operations](https://www.telerik.com/kendo-react-ui-develop/components/grid/data-operations/local-operations)
* [RSC Mode](https://www.telerik.com/kendo-react-ui-develop/components/grid/rsc-mode)
