# Expanding All Items

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 `false` value. You can further handle the expanding and collapsing of all items depending on the approach you selected for [updating the expanded TreeView items](https://www.telerik.com/kendo-vue-ui-develop/components/treeview/expansion/update-expanded-items).

The following example demonstrates how to copy the data before each update of the `expanded` field.

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

## Suggested Links

* [`onExpandChange`](https://www.telerik.com/kendo-vue-ui-develop/components/treeview/api/treeviewexpandchangeevent)
* [API Reference of the TreeView](https://www.telerik.com/kendo-vue-ui-develop/components/treeview/api/treeviewprops)
