# TreeView Expanded Items

TreeView lets the user expand multiple items. It also gives the option to pre-expand a specific item.

To use the item expansion, set the `ExpandedItems` parameter. It allows two-way binding (`@bind-ExpandedItems`) and one-way binding + [ExpandedItemsChanged](https://www.telerik.com/blazor-ui/documentation/components/treeview/events#expandeditemschanged) event.

The `ExpandedItems` collection is of type `IEnumerable<object>`.

## Programmatically Expand and Collapse Items

> caption Programmatically expand and collapse items on button click.

<demo metaUrl="client/treeview/expanded-items/example-1/" height="420"></demo>

## See Also

* [TreeView Overview](https://www.telerik.com/blazor-ui/documentation/components/treeview/overview)
* [TreeView Data Binding](https://www.telerik.com/blazor-ui/documentation/components/treeview/data-binding/overview)
* [TreeView Events](https://www.telerik.com/blazor-ui/documentation/components/treeview/events)
* [Expand and collapse TreeView items on click](https://www.telerik.com/blazor-ui/documentation/knowledge-base/treeview-expand-collapse-on-item-click)
