New to KendoReact? Start a free 30-day trial
Expanding All Items
Expanding All ItemsPremium
While the TreeView does not provide a built-in feature for expanding and collapsing all its items at once, the component supports such an implementation.
To enable the expand-all mode for its items, set the expanded
field of each TreeView node to true
. To enable the collapse-all mode for its items, set the expanded
field of each TreeView node to a falsy value. You can further handle the expanding and collapsing of all items depending on the approach you selected for updating the expanded TreeView items.
The following example demonstrates how to copy the data before each update of the expanded
field.
Change Theme
Theme
Loading ...