RadioGroupEventBuilder

Methods

Change(System.String)

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

For more information see Change event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of RadioGroupEventBuilder .

Example

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

Change(System.Func)

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

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of RadioGroupEventBuilder .

Example

Razor
 
             @( Html.Kendo().RadioGroup()
                      .Name("RadioGroup")
                      .Events(events => events.Change(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             

Focus(System.String)

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

For more information see Focus event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of RadioGroupEventBuilder .

Example

Razor
 
             @( Html.Kendo().RadioGroup()
                        .Name("RadioGroup")
                        .Events(events => events
                            .Focus("onFocus")
                        )
            )
             

Focus(System.Func)

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

For more information see Focus event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of RadioGroupEventBuilder .

Example

Razor
 
             @( Html.Kendo().RadioGroup()
                      .Name("RadioGroup")
                      .Events(events => events.Focus(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             

Select(System.String)

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.

For more information see Select event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of RadioGroupEventBuilder .

Example

Razor
 
             @( Html.Kendo().RadioGroup()
                        .Name("RadioGroup")
                        .Events(events => events
                            .Select("onSelect")
                        )
            )
             

Select(System.Func)

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.

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of RadioGroupEventBuilder .

Example

Razor
 
             @( Html.Kendo().RadioGroup()
                      .Name("RadioGroup")
                      .Events(events => events.Select(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )