# ResponsivePanelEventBuilder

## Methods

### Close(System.String)

Defines the handler of the Close client-side event. Triggered before the responsive panel is closed. Cancellable.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/responsivepanel/events/close) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().ResponsivePanel()
                        .Name("sidebar")
                        .Events(e => e.Close("onClose"))
                        .Content("<strong> First Item Content</strong>")
            )
             
```

### Close(System.Func)

Defines the handler of the Close client-side event. Triggered before the responsive panel is closed. Cancellable.

For more information see [Close](https://docs.telerik.com/kendo-ui/api/ui/responsivepanel/events/close) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().ResponsivePanel()
                        .Name("sidebar")
                        .Events(events => events.Close(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             
```

### Open(System.String)

Defines the handler of the Open client-side event. Triggered before the responsive panel is opened. Cancellable.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/responsivepanel/events/open) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().ResponsivePanel()
                        .Name("sidebar")
                        .Events(e => e.Open("onOpen"))
                        .Content("<strong> First Item Content</strong>")
            )
             
```

### Open(System.Func)

Defines the handler of the Open client-side event. Triggered before the responsive panel is opened. Cancellable.

For more information see [Open](https://docs.telerik.com/kendo-ui/api/ui/responsivepanel/events/open) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().ResponsivePanel()
                        .Name("sidebar")
                        .Events(events => events.Open(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             
```
