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

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

Definition

Constructors

Initializes a new instance of the BottomNavigationEventBuilder class.

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

The BottomNavigation event handlers.

Methods

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

C#
public BottomNavigationEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

BottomNavigationEventBuilder

Returns the current instance of BottomNavigationEventBuilder .

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

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

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

Returns:

BottomNavigationEventBuilder

Returns the current instance of BottomNavigationEventBuilder .

Defines the handler of the Select client-side event. Fires when the user selects an item in BottomNavigation.

C#
public BottomNavigationEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

BottomNavigationEventBuilder

Returns the current instance of BottomNavigationEventBuilder .

Example:
C#
@(Html.Kendo().BottomNavigation()
.Name("bottomNavigation")
.Events(events =&gt; events.Select(
@&lt;text&gt;
function(event){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Select client-side event. Fires when the user selects an item in BottomNavigation.

C#
public BottomNavigationEventBuilder Select(string handler)
Parameters:handlerstring

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

Returns:

BottomNavigationEventBuilder

Returns the current instance of BottomNavigationEventBuilder .

Example:
C#
@(Html.Kendo().BottomNavigation()
.Name("BottomNavigation")
.Events(events =&gt; events
.Select("onSelect")
)
)