# ToggleButtonEventBuilder

## Methods

### Toggle(System.String)

Defines the handler of the Toggle client-side event. Fires when the ToggleButton selected state is toggled.

For more information see [Toggle](https://docs.telerik.com/kendo-ui/api/ui/togglebutton/events/toggle) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

Returns the current instance of [ToggleButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/togglebuttoneventbuilder) .

### Toggle(System.Func)

Defines the handler of the Toggle client-side event. Fires when the ToggleButton selected state is toggled.

For more information see [Toggle](https://docs.telerik.com/kendo-ui/api/ui/togglebutton/events/toggle) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ToggleButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/togglebuttoneventbuilder) .

### Click(System.String)

Defines the handler of the Click client-side event. Fires when the Button is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the Button is focused.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/togglebutton/events/click) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

Returns the current instance of [ToggleButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/togglebuttoneventbuilder) .

### Click(System.Func)

Defines the handler of the Click client-side event. Fires when the Button is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the Button is focused.

For more information see [Click](https://docs.telerik.com/kendo-ui/api/ui/togglebutton/events/click) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ToggleButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/togglebuttoneventbuilder) .

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Button is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/togglebutton/events/kendokeydown) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

Returns the current instance of [ToggleButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/togglebuttoneventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Button is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/togglebutton/events/kendokeydown) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [ToggleButtonEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/togglebuttoneventbuilder) .
