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

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

Definition

Constructors

Initializes a new instance of the CheckBoxGroupEventBuilder class.

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

The CheckBoxGroup event handlers.

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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

CheckBoxGroupEventBuilder

Returns the current instance of CheckBoxGroupEventBuilder .

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

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

CheckBoxGroupEventBuilder

Returns the current instance of CheckBoxGroupEventBuilder .

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

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

CheckBoxGroupEventBuilder

Returns the current instance of CheckBoxGroupEventBuilder .

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

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

Returns the current instance of CheckBoxGroupEventBuilder .

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