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.