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 event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
                @( 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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of 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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SplitterEventBuilder .

Resize(System.String)

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

For more information see 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 .

Example

Razor
 
             @( 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 event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SplitterEventBuilder .

Example

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