Documentation

Documentation versions (currently viewingVaadin 23)

You are viewing documentation for Vaadin 23. View latest documentation

Tree Grid

Tree Grid is a component for displaying hierarchical tabular data grouped into expandable and collapsible nodes.

Open in a
new tab
Source code
tree-grid-basic.ts
TreeGridBasic.java
Person.java
Note
Features shared with Grid
Tree Grid is an extension of the Grid component and all Grid’s features are available in Tree Grid as well.

Tree Column

The tree column is a column that contains the toggles for expanding and collapsing nodes. Nodes are opened and closed by clicking a tree column’s cell. They can also be toggled programmatically.

Open in a
new tab
Source code
tree-grid-column.ts
TreeGridColumn.java
Person.java

Rich Content

Like Grid, Tree Grid supports rich content.

Open in a
new tab
Source code
tree-grid-rich-content.ts
TreeGridRichContent.java
Person.java

Best Practices

Tree Grid isn’t meant to be used as a navigation menu.

Caution
scrollToIndex() isn’t reliable
The behavior of the scrollToIndex() method in Tree Grid isn’t deterministic due to lazy-loading hierarchical data. It isn’t recommended to use this method.
Component Usage Recommendations

Grid

Component for showing tabular data.

Grid Pro

Component for showing and editing tabular data.

CRUD

Component for creating, displaying, updating and deleting tabular data.

9DEF736F-975A-469A-8625-A0A6E086BF50