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

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

Definition

Constructors

Initializes a new instance of the CheckBoxEventBuilder class.

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

The CheckBox event handlers.

Methods

Defines the handler of the Change client-side event. Fires when the checked state of the CheckBox is changed through user interaction.

C#
public CheckBoxEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

CheckBoxEventBuilder

Returns the current instance of CheckBoxEventBuilder .

Example:
C#
@(Html.Kendo().ButtonGroup()
.Name("button-group")
.Events(events =&gt; events
.Change(&lt;text&gt;
function() {
// Handle the Change event.
}
&lt;/text&gt;)
)
)

Defines the handler of the Change client-side event. Fires when the checked state of the CheckBox is changed through user interaction.

C#
public CheckBoxEventBuilder Change(string handler)
Parameters:handlerstring

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

Returns:

CheckBoxEventBuilder

Returns the current instance of CheckBoxEventBuilder .

Example:
C#
@(Html.Kendo().ButtonGroup()
.Name("button-group")
.Events(events =&gt; events
.Change("onChange")
)
)