TimelineBuilder<T>
Defines the fluent API for configuring the Telerik UI Timeline for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class TimelineBuilder<T> : WidgetBuilderBase<Timeline<T>, TimelineBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<Timeline<T>, TimelineBuilder<T>>TimelineBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the Timeline class.
Methods
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.
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 TimelineBuilder<T> AlternatingMode(bool value)
The value that configures the alternating mode.
Returns: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 TimelineBuilder<T> AutoBind(bool value)
The value that configures the autobind.
Returns: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.
Enables the events in the Kendo UI Timeline to be expandable or collapsible. When enabled initially all events are collapsed.
public TimelineBuilder<T> CollapsibleEvents(bool value)
The value that configures the collapsible events.
Returns:Sets the field of the data item that provides the actions information for the event.
public TimelineBuilder<T> DataActionsField(string value)
The value that configures the dataactionsfield.
Returns:Sets the field of the data item that provides information when the given event happened in time.
public TimelineBuilder<T> DataDateField(string value)
The value that configures the datadatefield.
Returns:Sets the field of the data item that provides the description information for the event.
public TimelineBuilder<T> DataDescriptionField(string value)
The value that configures the datadescriptionfield.
Returns:Sets the field of the data item that provides the value for the alt attribute of the images.
public TimelineBuilder<T> DataImagesAltField(string value)
The value that configures the dataimagesaltfield.
Returns:Sets the field of the data item that provides the images information for the event.
public TimelineBuilder<T> DataImagesField(string value)
The value that configures the dataimagesfield.
Returns:Sets the data source configuration of the timeline.
public TimelineBuilder<T> DataSource(Action<TimelineReadOnlyDataSourceBuilder> configurator)
The lambda which configures the data source
Returns:Sets the ID of the DataSource widget used by the Timeline.
public TimelineBuilder<T> DataSource(string dataSourceId)
The id of the DataSource
Returns:Sets the field of the data item that provides the subtitle information for the event.
public TimelineBuilder<T> DataSubtitleField(string value)
The value that configures the datasubtitlefield.
Returns:Sets the field of the data item that provides the title information for the event.
public TimelineBuilder<T> DataTitleField(string value)
The value that configures the datatitlefield.
Returns:Sets the date format used to display the date in the event's label
public TimelineBuilder<T> DateFormat(string value)
The value that configures the dateformat.
Returns:Sets specific height for the event in horizontal mode.
public TimelineBuilder<T> EventHeight(double value)
The value that configures the eventheight.
Returns:Configures the client-side events.
public TimelineBuilder<T> Events(Action<TimelineEventBuilder> configurator)
The client events action.
Returns:Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplate(string value)
The value that configures the eventtemplate.
Returns:Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the eventtemplate.
Returns:Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplateHandler(string value)
The value that configures the eventtemplate.
Returns:Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplateId(string value)
The value that configures the eventtemplate.
Returns:Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplateView(MvcHtmlString value)
The value that configures the eventtemplate.
Returns:Sets specific width for the event in vertical mode.
public TimelineBuilder<T> EventWidth(double value)
The value that configures the eventwidth.
Returns:If set to true, will enable the keyboard navigation for the component.
public TimelineBuilder<T> Navigatable(bool value)
The value that configures the navigatable.
Returns:Defines the orientation of the Timeline widget
public TimelineBuilder<T> Orientation(TimelineOrientation value)
The value that configures the orientation.
Returns:If set to false, the event's date label will be hidden.
public TimelineBuilder<T> ShowDateLabels(bool value)
The value that configures the showdatelabels.
Returns: