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

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

Definition

Constructors

Initializes a new instance of the CheckBoxGroup class.

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

The client events.

Methods

Defines the handler of the Change client-side event. Fires when checking or unchecking a checkbox in the widget through user interaction.

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

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

Returns:

CheckBoxGroupEventBuilder

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

Defines the handler of the Focus client-side event. Fires when a checkbox in the CheckBoxGroup is focused through user interaction.

C#
public CheckBoxGroupEventBuilder Focus(string handler)
Parameters:handlerstring

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

Returns:

CheckBoxGroupEventBuilder

Example:
C#
@( Html.Kendo().CheckBoxGroup()
.Name("CheckBoxGroup")
.Events(events =&gt; events
.Focus("onFocus")
)
)

Defines the handler of the Select client-side event. Fires when a checkbox input is clicked to be selected through user interaction. If prevented, the clicked input will not be checked/unchecked.

C#
public CheckBoxGroupEventBuilder Select(string handler)
Parameters:handlerstring

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

Returns:

CheckBoxGroupEventBuilder

Example:
C#
@( Html.Kendo().CheckBoxGroup()
.Name("CheckBoxGroup")
.Events(events =&gt; events
.Select("onSelect")
)
)