Defines the fluent API for configuring the Kendo UI ToggleButton for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToggleButtonEventBuilder : EventBuilder
Inheritance: objectEventBuilderToggleButtonEventBuilder
Inherited Members
Constructors
Initializes a new instance of the ToggleButtonEventBuilder class.
public ToggleButtonEventBuilder(IDictionary<string, object> events)
The ToggleButton event handlers.
Methods
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.
public ToggleButtonEventBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ToggleButtonEventBuilder .
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.
public ToggleButtonEventBuilder Click(string handler)
The name of the JavaScript function that will handle the Click event.
Returns:Returns the current instance of ToggleButtonEventBuilder .
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.
public ToggleButtonEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ToggleButtonEventBuilder .
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.
public ToggleButtonEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of ToggleButtonEventBuilder .
Defines the handler of the Toggle client-side event. Fires when the ToggleButton selected state is toggled.
public ToggleButtonEventBuilder Toggle(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ToggleButtonEventBuilder .
Defines the handler of the Toggle client-side event. Fires when the ToggleButton selected state is toggled.
public ToggleButtonEventBuilder Toggle(string handler)
The name of the JavaScript function that will handle the Toggle event.
Returns:Returns the current instance of ToggleButtonEventBuilder .