WarUI

Tree data from a nested children source

GRID-A17-F01P0baselinePlanned

Renders hierarchical rows from records that carry their children in a nested array property. The grid flattens the hierarchy for display and keeps the source data unchanged. Most JSON APIs return nested shapes, so this is the simplest way to get started with tree data.

Planned. This page shows the specification from issue #197. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A three-level chart-of-accounts dataset with about 40 nodes. Only the top level is expanded.

Expected behavior

Changing childrenField to match the dataset variant renders the hierarchy correctly. Turning treeData off shows only the root records as a flat list. Increasing depth regenerates the data, and the deeper levels can be expanded.

Planned API surface

treeDatatreeDataMode:'nested'childrenFieldgetRowIdrowData

Acceptance criteria

  • Rows with a non-empty children array show an expand toggle (pending)
  • Rows with no children array or an empty one show no toggle (pending)
  • The source rowData object is not mutated (pending)
  • Changing childrenField at runtime re-renders the tree without a page reload (pending)
  • getRowId values are unique across all levels (pending)