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

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

Definition

Constructors

Initializes a new instance of the Breadcrumb class.

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

The client events.

Methods

Defines the handler of the Change client-side event. Fires when the value of the Breadcrumb is changed.

C#
public BreadcrumbEventBuilder Change(string handler)
Parameters:handlerstring

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

Returns:

BreadcrumbEventBuilder

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Events(e =&gt; e.Change("onChange"))
)

Defines the handler of the Click client-side event. Fires when an item or a rootitem is clicked.

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

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

Returns:

BreadcrumbEventBuilder

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Events(e =&gt; e.Click("onClick"))
)

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

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

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

Returns:

BreadcrumbEventBuilder