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

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

Definition

Constructors

Initializes a new instance of the FloatingActionButton class.

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

The client events.

Methods

Defines the handler of the Click client-side event. Fires when the user clicks on a the FloatingActionButton.**Note: when using items configuration, clicking on the FloatingActionButton will open the speed-dial list popup.

C#
public FloatingActionButtonEventBuilder Click(string handler)
Parameters:handlerstring

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

Returns:

FloatingActionButtonEventBuilder

Example:
C#
@( Html.Kendo().FloatingActionButton()
.Name("FloatingActionButton")
.Events(events =&gt; events
.Click("onClick")
)
)

Defines the handler of the Collapse client-side event. Fires when the speed-dial popup is closed and its animation is finished.**Note: this event is triggered only when using items configuration.

C#
public FloatingActionButtonEventBuilder Collapse(string handler)
Parameters:handlerstring

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

Returns:

FloatingActionButtonEventBuilder

Example:
C#
@( Html.Kendo().FloatingActionButton()
.Name("FloatingActionButton")
.Events(events =&gt; events
.Collapse("onCollapse")
)
)

Defines the handler of the Expand client-side event. Fires when the speed-dial popup is opened and its animation is finished.**Note: this event is triggered only when using items configuration.

C#
public FloatingActionButtonEventBuilder Expand(string handler)
Parameters:handlerstring

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

Returns:

FloatingActionButtonEventBuilder

Example:
C#
@( Html.Kendo().FloatingActionButton()
.Name("FloatingActionButton")
.Events(events =&gt; events
.Expand("onExpand")
)
)

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

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

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

Returns:

FloatingActionButtonEventBuilder