New to Kendo UI for Vue? Start a free 30-day trial

Selecting All Items

While the TreeView does not provide a built-in feature for selecting and deselecting all its items at once, the component supports such an implementation.

To enable the select-all mode for its items, set the selected field of each TreeView node to true. To enable the deselect-all mode for its items, set the selected field of each TreeView node to a falsy value. You can further handle the selection and deselection of all items depending on the approach you chose for updating the selected TreeView items.

The following example demonstrates how to use the processTreeViewItems helper function and update the selected items in an immutable way.

Example
View Source
Change Theme:

In this article

Not finding the help you need?