Demo

Tree templates

Documented in Tree Grid.

Tree templates

An org chart in DataGrid tree mode with a tree column cell template that reads ctx.tree, row props and classes per depth, a row template that keeps the toggle, detail rows that follow their tree row, row spans inside each parent, and grid lines and alternate rows.

Details
Unit
Kind
Site
Budget
Engineering open · level 1
Division
Lisbon
Platform open · level 2
Team
Ana Duarte
Person
€98,000
Ben Okafor
Person
€91,000
Chen Wei
Person
Remote
€88,000
Web open · level 2
Team
Berlin
Dara Novak
Person
€94,000
Eli Haddad
Person
€86,000
Operations open · level 1
Division
Berlin
Support open · level 2
Team
Dublin
Fay Murphy
Person
€72,000
Gus Lindqvist
Person
€70,000

Open a person's detail toggle, then collapse the team: the detail row hides with its row and comes back on expand. The remote engineer is flagged by a row class.