New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Orientation

The Timeline can render its events in a vertical or horizontal list.

Vertical

By default, the timeline is vertical, with events arranged on one side of the axis.

You can have the events render alternatingly on both sides of the axis by adding its .AlternatingMode() option.

If you add the .CollapsibleEvents() option, all events will start out collapsed (by default, all events are expanded). The user can then expand a particular event to see more than its title and subtitle.

Razor
    @(Html.Kendo().Timeline<MyApp.Models.TimelineEventModel>()
               .Name("Timeline")
               .Orientation("vertical") // defines the layout of the widget
               .AlternatingMode() // renders the events on both sides of the axis in vertical mode
               .CollapsibleEvents() // starts all events collapsed in vertical mode
               .DataDateField("EventDate")
               .DataDescriptionField("Description")
               .DataSubTitleField("Subtitle")
               .DataTitleField("Title")
               .DataImagesField("Images")
               .DataActionsField("Actions")
               .DataSource(dt => dt.Read("GetTimelineData", "Timeline"))
    )

Horizontal

To use the horizontal rendering, set the .Orientation("horizontal") option.

In the horizontal mode, the timeline renders buttons the user can click or tap to navigate between periods. There is always one rendered event below the time axis, and the user can select another to reveal its details.

The horizontal mode renders the event details on demand (only when they are selected), and is responsive (renders as many of the events as there is room on the axis for).

Alternating rendering and collapsing is not available for the events in this mode.

Razor
    @(Html.Kendo().Timeline<MyApp.Models.TimelineEventModel>()
               .Name("Timeline")
               .Orientation("horizontal") // defines the layout of the widget
               .DataDateField("EventDate")
               .DataDescriptionField("Description")
               .DataSubTitleField("Subtitle")
               .DataTitleField("Title")
               .DataImagesField("Images")
               .DataActionsField("Actions")
               .DataSource(dt => dt.Read("GetTimelineData", "Timeline"))
    )

See Also

In this article
VerticalHorizontalSee Also
Not finding the help you need?
Contact Support