# TimelineBuilder

## Properties

### WriteAction - Func

## Methods

### EventTemplate(System.String)

Specifies the template used to render the event details.

#### Parameters

##### value - `System.String`

The value for EventTemplate

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .EventTemplate("#=data.title#")
                )
             
```

### EventTemplateId(System.String)

Specifies the template used to render the event details.

#### Parameters

##### templateId - `System.String`

The ID of the template element for EventTemplate

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .EventTemplateId("myTemplate")
                )
             
```

### EventTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies the template used to render the event details.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view which contains the template for EventTemplate

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .EventTemplateId(Html.Partial("SomePartial"))
                )
             
```

### EventTemplateHandler(System.String)

Specifies the template used to render the event details.

#### Parameters

##### templateHandler - `System.String`

The JavaScript function which contains the template for EventTemplate

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .EventTemplateHandler("myHandler")
                )
             
```

### EventTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Specifies the template used to render the event details.

#### Parameters

##### template - TemplateBuilder\<TModel>

The Template component which contains the template.

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .EventTemplate(Html.Kendo().Template()
                        .AddHtml("<div>Some Content </div>")
                    )
                )
             
```

### DataSource(System.Action)

Sets the data source configuration of the Timeline.

#### Parameters

##### configurator - System.Action<[TimelineReadOnlyDataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinereadonlydatasourcebuilder)>

The action that will be used to declare the DataSource.

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .DataSource(dataSource =>
                        // configure the data source
                        dataSource
                            .Ajax()
                            .Read(read => read.Action("Events_Read", "Home"))
                    )
                )
             
```

### DataSource(System.String)

Sets the ID of the DataSource used by the Timeline.

#### Parameters

##### dataSourceId - `System.String`

The DataSource component that will be used to define the DataSource of the Timeline.

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .DataSource("myDataSource")
                )
             
```

### AutoBind(System.Boolean)

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.

#### Parameters

##### value - `System.Boolean`

The value for AutoBind

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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.

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### CollapsibleEvents()

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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### DataImagesAltField(System.String)

Sets the field of the data item that provides the value for the alt attribute of the images.

#### Parameters

##### value - `System.String`

The value for DataImagesAltField

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### 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

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### EventHeight(System.Double)

Sets specific height for the event in horizontal mode.

#### Parameters

##### value - `System.Double`

The value for EventHeight

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### EventWidth(System.Double)

Sets specific width for the event in vertical mode.

#### Parameters

##### value - `System.Double`

The value for EventWidth

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### Navigatable(System.Boolean)

If set to true, will enable the keyboard navigation for the component.

#### Parameters

##### value - `System.Boolean`

The value for Navigatable

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### Navigatable()

If set to true, will enable the keyboard navigation for the component.

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### ShowDateLabels(System.Boolean)

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

#### Parameters

##### value - `System.Boolean`

The value for ShowDateLabels

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### Orientation(Kendo.Mvc.UI.TimelineOrientation)

Defines the orientation of the Timeline widget

#### Parameters

##### value - [TimelineOrientation](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/timelineorientation)

The value for Orientation

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

### Events(System.Action)

Configures the client-side events.

#### Parameters

##### configurator - System.Action<[TimelineEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder)>

The client events action.

#### RETURNS

Returns the current [TimelineBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelinebuilder) instance.

#### Example

```
 
            @(Html.Kendo().Timeline()
                  .Name("Timeline")
                  .Events(events => events
                      .Change("onChange")
                  )
            )
             
```

### ToComponent()

Returns the internal view component.

#### RETURNS

The  instance that represents the component.

### Expression(System.String)

Sets the name of the component.

#### Parameters

##### modelExpression - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

#### Parameters

##### modelExplorer - `Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer`

The name.

#### RETURNS

Returns the current  instance.

### Name(System.String)

Sets the name of the component.

#### Parameters

##### componentName - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

#### Parameters

##### deferred - `System.Boolean`

#### RETURNS

Returns a [DeferredWidgetBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/deferredwidgetbuilder) instance.

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Object`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Object`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### Render()

Renders the component in place.

### ToHtmlString()

Returns the HTML representation of the component.

### WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

#### Parameters

##### writer - `System.IO.TextWriter`

##### encoder - `System.Text.Encodings.Web.HtmlEncoder`

### ToClientTemplate()

Returns the client template for the component.

### AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

#### Parameters

##### value - `System.Boolean`

#### RETURNS

Returns the current  instance.
