Timeline<T>
Kendo UI Timeline component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class Timeline<T> : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent where T : class
Inheritance: objectWidgetBaseTimeline<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the Timeline class.
public Timeline(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Fields
The URL generator.
public IUrlGenerator urlGenerator
Properties
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.
public bool? AlternatingMode { get; set; }
If set to false, the Timeline will not bind to the data source during initialization, i.e. it will not call the fetch method of the dataSource instance. In such scenarios data binding will occur when the change event of the dataSource instance is fired. By default, autoBind is set to true and the widget will bind to the data source specified in the configuration.
public bool? AutoBind { get; set; }
Enables the events in the Kendo UI Timeline to be expandable or collapsible. When enabled initially all events are collapsed.
public bool? CollapsibleEvents { get; set; }
Sets the field of the data item that provides the actions information for the event.
public string DataActionsField { get; set; }
Sets the field of the data item that provides information when the given event happened in time.
public string DataDateField { get; set; }
Sets the field of the data item that provides the description information for the event.
public string DataDescriptionField { get; set; }
Sets the field of the data item that provides the value for the alt attribute of the images.
public string DataImagesAltField { get; set; }
Sets the field of the data item that provides the images information for the event.
public string DataImagesField { get; set; }
public DataSource DataSource { get; }
public string DataSourceId { get; set; }
Sets the field of the data item that provides the subtitle information for the event.
public string DataSubtitleField { get; set; }
Sets the field of the data item that provides the title information for the event.
public string DataTitleField { get; set; }
Sets the date format used to display the date in the event's label
public string DateFormat { get; set; }
Sets specific height for the event in horizontal mode.
public double? EventHeight { get; set; }
Specifies the template used to render the event details.
public string EventTemplate { get; set; }
The handler for the EventTemplate
public string EventTemplateHandler { get; set; }
The id for the EventTemplate
public string EventTemplateId { get; set; }
Sets specific width for the event in vertical mode.
public double? EventWidth { get; set; }
If set to true, will enable the keyboard navigation for the component.
public bool? Navigatable { get; set; }
Defines the orientation of the Timeline widget
public TimelineOrientation? Orientation { get; set; }
If set to false, the event's date label will be hidden.
public bool? ShowDateLabels { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: