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

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

Definition

Constructors

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

Methods

Fires when the state of the widget changes

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

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

Returns:

SwitchEventBuilder

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

Defines the handler of the KendoKeydown client-side event.

C#
public SwitchEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

SwitchEventBuilder