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

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

Definition

Constructors

Initializes a new instance of the Timeline class.

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

The client events.

Methods

Defines the handler of the ActionClick client-side event. Fires when an action for an event is clicked.

C#
public TimelineEventBuilder ActionClick(string handler)
Parameters:handlerstring

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

Returns:

TimelineEventBuilder

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.ActionClick("onActionClick")
)
)

Defines the handler of the Change client-side event. Fires when a new event is opened.

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

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

Returns:

TimelineEventBuilder

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.Change("onChange")
)
)

Defines the handler of the Collapse client-side event. Fires when an event is going to be collapsed.

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

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

Returns:

TimelineEventBuilder

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

Defines the handler of the DataBound client-side event. Fires when the Timeline is bound to data.

C#
public TimelineEventBuilder DataBound(string handler)
Parameters:handlerstring

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

Returns:

TimelineEventBuilder

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.DataBound("onDataBound")
)
)

Defines the handler of the Expand client-side event. Fires when an event is going to be expanded.

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

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

Returns:

TimelineEventBuilder

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.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 Timeline is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

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

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

Returns:

TimelineEventBuilder

Defines the handler of the Navigate client-side event. Fires when the left or right arrow is clicked.

C#
public TimelineEventBuilder Navigate(string handler)
Parameters:handlerstring

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

Returns:

TimelineEventBuilder

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.Navigate("onNavigate")
)
)