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

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

Definition

Constructors

Initializes a new instance of the TimelineEventBuilder class.

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

The Timeline event handlers.

Methods

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

C#
public TimelineEventBuilder ActionClick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.ActionClick(@&lt;text&gt;
function(){
// Handle the ActionClick event inline.
}
&lt;/text&gt;
)
)
)

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.Change(@&lt;text&gt;
function(){
// Handle the Change event inline.
}
&lt;/text&gt;
)
)
)

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.Collapse(@&lt;text&gt;
function(){
// Handle the Collapse event inline.
}
&lt;/text&gt;
)
)
)

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.DataBound(@&lt;text&gt;
function(){
// Handle the DataBound event inline.
}
&lt;/text&gt;
)
)
)

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.Expand(@&lt;text&gt;
function(){
// Handle the Expand event inline.
}
&lt;/text&gt;
)
)
)

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

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

Returns the current instance of TimelineEventBuilder .

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

C#
public TimelineEventBuilder Navigate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TimelineEventBuilder

Returns the current instance of TimelineEventBuilder .

Example:
C#
@(Html.Kendo().Timeline&lt;Event&gt;()
.Name("timeline")
.Events(events =&gt;events
.Navigate(@&lt;text&gt;
function(){
// Handle the ActionClick event inline.
}
&lt;/text&gt;
)
)
)

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

Returns the current instance of TimelineEventBuilder .

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