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

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

Definition

Constructors

Initializes a new instance of the SplitButtonEventBuilder class.

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

The SplitButton event handlers.

Methods

Defines the handler of the Click client-side event. Fires when the SplitButton or any if its items is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the SplitButton or an item is focused.

C#
public SplitButtonEventBuilder Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitButtonEventBuilder

Returns the current instance of SplitButtonEventBuilder .

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Events(e =&gt; e.Click(
@&lt;text&gt;
function(e) {
// event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Click client-side event. Fires when the SplitButton or any if its items is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the SplitButton or an item is focused.

C#
public SplitButtonEventBuilder Click(string handler)
Parameters:handlerstring

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

Returns:

SplitButtonEventBuilder

Returns the current instance of SplitButtonEventBuilder .

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Events(events =&gt; {
events.Click("onClick");
})
)

Defines the handler of the Close client-side event. Fires when the menu button is closed.

C#
public SplitButtonEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitButtonEventBuilder

Returns the current instance of SplitButtonEventBuilder .

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Events(e =&gt; e.Close(
@&lt;text&gt;
function(e) {
// event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Close client-side event. Fires when the menu button is closed.

C#
public SplitButtonEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

SplitButtonEventBuilder

Returns the current instance of SplitButtonEventBuilder .

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Events(events =&gt; {
events.Close("onClose");
})
)

Defines the handler of the Open client-side event. Fires when the menu button is opened.

C#
public SplitButtonEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

SplitButtonEventBuilder

Returns the current instance of SplitButtonEventBuilder .

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Events(e =&gt; e.Open(
@&lt;text&gt;
function(e) {
// event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Open client-side event. Fires when the menu button is opened.

C#
public SplitButtonEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

SplitButtonEventBuilder

Returns the current instance of SplitButtonEventBuilder .

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Events(events =&gt; {
events.Open("onOpen");
})
)