# Interaction Modes

The ExpansionPanel enables you to set its initial expanded state and change it on demand by using the available API options.

## Setting the Initial State

By default, the ExpansionPanel is collapsed. To expand it, set the [`expanded`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/expansionpanelcomponent#expanded) property to `true`. The property supports a two-way binding and can be programmatically updated to immediately expand or collapse the ExpansionPanel.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/expansionpanel/state/source.txt)

## Toggling between States

You can switch between the expanded and collapsed states of the ExpansionPanel by making use of its [`toggle`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/expansionpanelcomponent#toggle) method. The difference between this approach and the one where the [expanded state is set initially](https://www.telerik.com/kendo-angular-ui-develop/components/layout/expansionpanel/interaction#setting-the-initial-state) is that the toggle method will trigger the [`animation`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/expansionpanelcomponent#animation), which is specified in the configuration options of the ExpansionPanel.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/expansionpanel/toggle/source.txt)

## Suggested Links

* [API Reference of the ExpansionPanel](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/expansionpanelcomponent)
* [Persist the Expanded State](https://www.telerik.com/kendo-angular-ui-develop/components/knowledge-base/expansionpanel-persist-state)
