# 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](https://www.telerik.com/kendo-vue-ui/components/treeview/selection/update-selected-items).

The following example demonstrates how to use the [`processTreeViewItems`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/processtreeviewitems) helper function and update the selected items in an immutable way.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/treeview/select/selection-all/source.txt)

## Suggested Links

* [`onItemClick`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewitemclickevent)
* [`processTreeViewItems`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/processtreeviewitems)
* [API Reference of the TreeView](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewprops)
