# Checking All Items

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

To enable the check-all mode for its items, set the `checked` field of each TreeView node to `true`. To enable the uncheck-all mode for its items, set the `checked` field of each TreeView node to a falsy value. You can further handle the checking and unchecking of all items depending on whether you [update the items directly](https://www.telerik.com/kendo-vue-ui/components/treeview/checkboxes/check-all#updating-items-directly) or [use the helper functions](https://www.telerik.com/kendo-vue-ui/components/treeview/checkboxes/check-all#using-helper-functions).

## Updating Items Directly

The following example demonstrates how to directly update the `checked` field of all TreeView items.

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

## Using Helper Functions

The following example demonstrates how to use the [`handleTreeViewCheckChange`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/handletreeviewcheckchange) and [`processTreeViewItems`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/processtreeviewitems) helper functions to prepare the [`dataItems`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewprops#dataitems) of the TreeView and how to manually set the [`check`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewoperationdescriptors#check) descriptor to:

* All hierarchical item indices upon checking all items.
* An empty array upon unchecking all items.

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

## Suggested Links

* [`handleTreeViewCheckChange`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/handletreeviewcheckchange)
* [`TreeViewCheckChangeSettings`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewcheckchangesettings)
* [`processTreeViewItems`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/processtreeviewitems)
* [`TreeViewCheckDescriptor`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewcheckdescriptor)
* [`onCheckChange`](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewcheckchangeevent)
* [API Reference of the TreeView](https://www.telerik.com/kendo-vue-ui/components/treeview/api/treeviewprops)
