# ExpansionPanelEventBuilder

## Methods

### Expand(System.String)

Defines the handler of the Expand client-side event. Fired when the widget is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Expand](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/expand) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Expand event.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

#### Example

```
 
                @(Html.Kendo().ExpansionPanel()
                    .Name("expansionPanel")
                    .Events(events => events.Expand("onExpand"))
                )
             
```

### Expand(System.Func)

Defines the handler of the Expand client-side event. Fired when the widget is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Expand](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/expand) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

#### Example

```
 
                @(Html.Kendo().ExpansionPanel()
                    .Name("expansionPanel")
                    .Events(events => events.Expand(
                                        @<text>
                                            function(e){
                                                // Handle event.
                                            }
                                        </text>
                     ))
                )
             
```

### Collapse(System.String)

Defines the handler of the Collapse client-side event. Fired when the widget is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Collapse](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/collapse) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Collapse event.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

#### Example

```
 
                @(Html.Kendo().ExpansionPanel()
                    .Name("expansionPanel")
                    .Events(events => events.Collapse("onCollapse"))
                )
             
```

### Collapse(System.Func)

Defines the handler of the Collapse client-side event. Fired when the widget is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Collapse](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/collapse) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

#### Example

```
 
                @(Html.Kendo().ExpansionPanel()
                    .Name("expansionPanel")
                    .Events(events => events.Collapse(
                                        @<text>
                                            function(e){
                                                // Handle event.
                                            }
                                        </text>
                     ))
                )
             
```

### Complete(System.String)

Defines the handler of the Complete client-side event. Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Complete](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/complete) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Complete event.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

#### Example

```
 
                @(Html.Kendo().ExpansionPanel()
                    .Name("expansionPanel")
                    .Events(events => events.Complete("onCollapse"))
                )
             
```

### Complete(System.Func)

Defines the handler of the Complete client-side event. Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [Complete](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/complete) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

#### Example

```
 
                @(Html.Kendo().ExpansionPanel()
                    .Name("expansionPanel")
                    .Events(events => events.Complete(
                                        @<text>
                                            function(e){
                                                // Handle event.
                                            }
                                        </text>
                     ))
                )
             
```

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ExpansionPanel is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/kendokeydown) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the KendoKeydown event.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ExpansionPanel is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/expansionpanel/events/kendokeydown) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ExpansionPanelEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/expansionpaneleventbuilder) .
