New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Actions
The Timeline can render links (<a>
tags) for the items from the Actions
collection in its data source, so the user can navigate to the specific pages.
The href
attribute of an action will be set to the value of the src
field of the action literal, and the text will come from the text
field.
The example below shows how you can a few actions actions for one event.
Razor
@(Html.Kendo().Timeline<Kendo.Mvc.Examples.Models.TimelineEventModel>()
.Name("Timeline")
.DataDateField("EventDate")
.DataDescriptionField("Description")
.DataSubTitleField("Subtitle")
.DataTitleField("Title")
.DataActionsField("Actions")
.Orientation("horizontal")
.DataSource(dt => dt.Read("GetTimelineData", "Timeline"))
)