# SplitterEventBuilder

## Methods

### Collapse(System.String)

Defines the handler of the Collapse client-side event. Triggered when a pane of a Splitter is collapsed.

For more information see [Collapse](https://docs.telerik.com/kendo-ui/api/ui/splitter/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 [SplitterEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splittereventbuilder) .

#### Example

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

### Collapse(System.Func)

Defines the handler of the Collapse client-side event. Triggered when a pane of a Splitter is collapsed.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                       .Name("Splitter")
                       .Events(events => events.Collapse(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )
             
```

### ContentLoad(System.String)

Defines the handler of the ContentLoad client-side event. Triggered when the content for a pane has finished loading from a remote endpoint.

For more information see [ContentLoad](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/contentload) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                        .Name("Splitter")
                        .Events(events => events.ContentLoad("onContentLoad"))
            )
             
```

### ContentLoad(System.Func)

Defines the handler of the ContentLoad client-side event. Triggered when the content for a pane has finished loading from a remote endpoint.

For more information see [ContentLoad](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/contentload) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                       .Name("Splitter")
                       .Events(events => events.ContentLoad(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )
             
```

### Error(System.String)

Defines the handler of the Error client-side event. Triggered when the AJAX request that fetches a pane content has failed.

For more information see [Error](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/error) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                        .Name("Splitter")
                        .Events(events => events.Error("onError"))
            )
             
```

### Error(System.Func)

Defines the handler of the Error client-side event. Triggered when the AJAX request that fetches a pane content has failed.

For more information see [Error](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/error) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                       .Name("Splitter")
                       .Events(events => events.Error(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )
             
```

### Expand(System.String)

Defines the handler of the Expand client-side event. Triggered when a pane of a Splitter is expanded.

For more information see [Expand](https://docs.telerik.com/kendo-ui/api/ui/splitter/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 [SplitterEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splittereventbuilder) .

#### Example

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

### Expand(System.Func)

Defines the handler of the Expand client-side event. Triggered when a pane of a Splitter is expanded.

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

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                       .Name("Splitter")
                       .Events(events => events.Expand(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )
             
```

### LayoutChange(System.String)

Defines the handler of the LayoutChange client-side event. This event is now obsolete and will be removed in the future. Please use the resize event instead.Fires when the splitter layout has changed

For more information see [LayoutChange](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/layoutchange) event.

#### Parameters

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

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

#### RETURNS

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

### LayoutChange(System.Func)

Defines the handler of the LayoutChange client-side event. This event is now obsolete and will be removed in the future. Please use the resize event instead.Fires when the splitter layout has changed

For more information see [LayoutChange](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/layoutchange) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

### Resize(System.String)

Defines the handler of the Resize client-side event. Triggered when a pane is resized.

For more information see [Resize](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/resize) event.

#### Parameters

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

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                        .Name("Splitter")
                        .Events(events => events.Resize("onResize"))
            )
             
```

### Resize(System.Func)

Defines the handler of the Resize client-side event. Triggered when a pane is resized.

For more information see [Resize](https://docs.telerik.com/kendo-ui/api/ui/splitter/events/resize) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().Splitter()
                       .Name("Splitter")
                       .Events(events => events.Resize(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )
             
```

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Splitter 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/splitter/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 [SplitterEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/splittereventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Splitter 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/splitter/events/kendokeydown) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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