# Controlled Mode

By default, the PanelBar is in an uncontrolled state.

To manage the state of the PanelBar:

* Set the [`expanded`](https://www.telerik.com/kendo-vue-ui/components/layout/api/panelbarprops#expanded) property to the expanded items value.
* Handle the [`onSelect`](https://www.telerik.com/kendo-vue-ui/components/layout/api/panelbarprops#onSelect) event.
* Set the new value trough the props.

## Expand/collapse All PanelBar Items

The following example demonstrates how to use the `expanded` property of the PanelBar to expand or collapse all its items.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/layout/panelbar/controlled-state/basic/source.txt)

## Suggested Links

* [API Reference of the PanelBar](https://www.telerik.com/kendo-vue-ui/components/layout/api/panelbarprops)
* [API Reference of the PanelBarItem](https://www.telerik.com/kendo-vue-ui/components/layout/api/panelbaritemprops)
