Kendo.Mvc.UI.Fluent.TimelineBuilder

Defines the fluent API for configuring the Kendo UI Timeline

Methods

EventTemplate(System.String)

Specifies the template used to render the event details.

Parameters

value System.String

The value for EventTemplate

EventTemplateId(System.String)

Specifies the template used to render the event details.

Parameters

templateId System.String

The ID of the template element for EventTemplate

DataSource(System.Action<Kendo.Mvc.UI.Fluent.TimelineReadOnlyDataSourceBuilder>)

Sets the data source configuration of the Timeline.

DataSource(System.String)

Sets the ID of the DataSource used by the Timeline.

AlternatingMode(System.Boolean)

Indicates whether events should be positioned on both sides of the timeline axis. By default all events are displayed on the right side of the timeline axis.

Parameters

value System.Boolean

The value for AlternatingMode

AlternatingMode

Indicates whether events should be positioned on both sides of the timeline axis. By default all events are displayed on the right side of the timeline axis.

CollapsibleEvents(System.Boolean)

Enables the events in the Kendo UI Timeline to be expandable or collapsible. When enabled initially all events are collapsed.

Parameters

value System.Boolean

The value for CollapsibleEvents

CollapsibleEvents

Enables the events in the Kendo UI Timeline to be expandable or collapsible. When enabled initially all events are collapsed.

DataActionsField(System.String)

Sets the field of the data item that provides the actions information for the event.

Parameters

value System.String

The value for DataActionsField

DataDescriptionField(System.String)

Sets the field of the data item that provides the description information for the event.

Parameters

value System.String

The value for DataDescriptionField

DataDateField(System.String)

Sets the field of the data item that provides information when the given event happened in time.

Parameters

value System.String

The value for DataDateField

DataImagesField(System.String)

Sets the field of the data item that provides the images information for the event.

Parameters

value System.String

The value for DataImagesField

DataSubtitleField(System.String)

Sets the field of the data item that provides the subtitle information for the event.

Parameters

value System.String

The value for DataSubtitleField

DataTitleField(System.String)

Sets the field of the data item that provides the title information for the event.

Parameters

value System.String

The value for DataTitleField

DateFormat(System.String)

Sets the date format used to display the date in the event's label

Parameters

value System.String

The value for DateFormat

EventHeight(System.Double)

Sets specific height for the event in horizontal mode.

Parameters

value System.Double

The value for EventHeight

EventWidth(System.Double)

Sets specific width for the event in vertical mode.

Parameters

value System.Double

The value for EventWidth

ShowDateLabels(System.Boolean)

If set to false, the event's date label will be hidden.

Parameters

value System.Boolean

The value for ShowDateLabels

Orientation(Kendo.Mvc.UI.TimelineOrientation)

Defines the orientation of the Timeline widget

Parameters

value Kendo.Mvc.UI.TimelineOrientation

The value for Orientation

Events(System.Action<Kendo.Mvc.UI.Fluent.TimelineEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.TimelineEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().Timeline()
    .Name("Timeline")
    .Events(events => events
        .Change("onChange")
    )
)
In this article
Not finding the help you need?