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

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

Definition

Constructors

Initializes a new instance of the RadioButtonEventBuilder class.

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

The RadioButton event handlers.

Methods

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

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

The handler code wrapped in a text tag.

Returns:

RadioButtonEventBuilder

Returns the current instance of RadioButtonEventBuilder .

Example:
C#
@(Html.Kendo().RadioButton()
.Name("radioBtn1")
.Events(events =&gt; events.Change(@&lt;text&gt;
function(e) {
// Handle the Change event inline.
}
&lt;/text&gt;)
)
)

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

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

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

Returns:

RadioButtonEventBuilder

Returns the current instance of RadioButtonEventBuilder .

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