SwitchEventBuilder

Methods

Change(System.String)

Fires when the state of the widget changes

For more information see Change event.

Parameters

handler - System.String

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

Example

Razor
 
             @( Html.Kendo().Switch()
                        .Name("Switch")
                        .Events(events => events
                            .Change("onChange")
                        )
            )
             

KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event.

For more information see KendoKeydown event.

Parameters

handler - System.String

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