# KendoReact OrgChart Expand/Collapse

The expand/collapse functionality requires setting the [`idField`](https://www.telerik.com/kendo-react-ui/components/orgchart/api/orgchartprops#idField) property, the [`expandField`](https://www.telerik.com/kendo-react-ui/components/orgchart/api/orgchartprops#expandField), and handling the [`onExpandChange`](https://www.telerik.com/kendo-react-ui/components/orgchart/api/orgchartprops#onExpandChange) event.

This is demonstrated in the below example:

[Demo Source](https://demos.telerik.com/kendo-react-ui/orgchart/expand-collapse/source.txt)

## Suggested Links

* [Getting Started with KendoReact](https://www.telerik.com/try/kendo-react-ui)
* [API Reference of the KendoReact OrgChart](https://www.telerik.com/kendo-react-ui/components/orgchart/api)
* [KendoReact End User License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact)
