New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI Splitter for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the SplitterEventBuilder class.

C#
public SplitterEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The Splitter event handlers.

Methods

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

C#
public SplitterEventBuilder Collapse(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Collapse(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public SplitterEventBuilder Collapse(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Collapse("onCollapse"))
)

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

C#
public SplitterEventBuilder ContentLoad(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.ContentLoad(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public SplitterEventBuilder ContentLoad(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.ContentLoad("onContentLoad"))
)

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

C#
public SplitterEventBuilder Error(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Error(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public SplitterEventBuilder Error(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Error("onError"))
)

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

C#
public SplitterEventBuilder Expand(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Expand(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public SplitterEventBuilder Expand(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Expand("onExpand"))
)

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.

C#
public SplitterEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

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.

C#
public SplitterEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

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

C#
public SplitterEventBuilder LayoutChange(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

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

C#
public SplitterEventBuilder LayoutChange(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

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

C#
public SplitterEventBuilder Resize(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Resize(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public SplitterEventBuilder Resize(string handler)
Parameters:handlerstring

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

Returns:

SplitterEventBuilder

Returns the current instance of SplitterEventBuilder .

Example:
C#
@( Html.Kendo().Splitter()
.Name("Splitter")
.Events(events =&gt; events.Resize("onResize"))
)