Demo

Tree expansion state

Documented in Tree Grid.

Tree expansion state

Flat ticket rows with initial expansion from a data field, reactive expandedRows overrides, expansion saved with persistState and getState / restoreState, an orphan and a parent cycle shown as roots, shared grid events, and tree mode winning over a grouping prop.

tree.expandedRows (reactive overrides)
Ticket
ID
Assignee
Points
Checkout redesign
T-1
Ana
13
Order summary
T-5
Dara
3

T-1 starts expanded because its open field is true. Toggle rows, sort, then reload the page: the expansion comes back from storage. With grouping passed too, the grid stays a tree (tree wins; development builds warn).

No events yet.