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

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

Definition

Constructors

Initializes a new instance of the RadioGroupEventBuilder class.

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

The RadioGroup event handlers.

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

The handler code wrapped in a text tag.

Returns:

RadioGroupEventBuilder

Returns the current instance of RadioGroupEventBuilder .

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

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

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

The handler code wrapped in a text tag.

Returns:

RadioGroupEventBuilder

Returns the current instance of RadioGroupEventBuilder .

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

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

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

The handler code wrapped in a text tag.

Returns:

RadioGroupEventBuilder

Returns the current instance of RadioGroupEventBuilder .

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

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

Returns the current instance of RadioGroupEventBuilder .

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