Help us make our products better.Take our 5 minute survey.
Dismiss

TreeDataState Plugin Reference

A plugin that manages the expanded state for tree rows.

Import

Use the following statement to import the plugin:

import { TreeDataState } from '@devexpress/dx-react-grid';

User Reference

Dependencies

none

Properties

Name Type Default Description
expandedRowIds? Array<number | string> IDs of the rows being expanded.
defaultExpandedRowIds? Array<number | string> [] IDs of the rows that are initially expanded in the uncontrolled mode.
onExpandedRowIdsChange? (expandedRowIds: Array<number | string>) => void Handles expanded rows changes.

Plugin Developer Reference

Imports

none

Exports

Name Plugin Type Description
expandedRowIds Getter Array<number | string> Currently expanded rows.
toggleRowExpanded Action ({ rowId }) => void Expands/collapses the specified row.
This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies. For more information, refer to DevExpress’ privacy policy and cookie policy.