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

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

Definition

Constructors

Initializes a new instance of the RadioGroup class.

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

The client events.

Methods

Defines the handler of the Change client-side event. Fires when the selected radio input in the RadioGroup is changed through user interaction.

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

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

Returns:

RadioGroupEventBuilder

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

Defines the handler of the Focus client-side event. Fires when a radio input in the RadioGroup is focused through user interaction.

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

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

Returns:

RadioGroupEventBuilder

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

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

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

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

Returns:

RadioGroupEventBuilder

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