New to Telerik UI for ASP.NET Core? Download free 30-day trial

TimelineReadOnlyDataSourceBuilder

Methods

Read(System.Action)

Configures the URL for Read operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

The read action configuration.

Example


               @(Html.Kendo().Timeline<OrderViewModel>()
                       .Name("tl")
                       .DataSource(ds =>
                       {
                           ds.Read(r => r.Action("Action", "Controller"));
                       });
                ) 

Read(System.String,System.String,System.Object)

Sets controller and action for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Example


               @(Html.Kendo().Timeline<OrderViewModel>()
                       .Name("tl")
                       .DataSource(ds =>
                       {
                           ds.Read("Action", "Controller", new { value="myvalue"});
                       });
                ) 

Read(System.String,System.String)

Sets controller, action and routeValues for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


               @(Html.Kendo().Timeline<OrderViewModel>()
                       .Name("tl")
                       .DataSource(ds =>
                       {
                           ds.Read("Action", "Controller");
                       });
                ) 

Events(System.Action)

Configures the client-side events

Parameters

configurator - System.Action<DataSourceEventBuilder>

The events configuration.

Example


               @(Html.Kendo().Timeline<OrderViewModel>()
                       .Name("tl")
                       .DataSource(ds =>
                       {
                            ds.Events(ev => ev.Change("onChange"));
                       });
                ) 

Custom()

Use it to configure Custom binding.

Example


               @(Html.Kendo().Timeline<OrderViewModel>()
                       .Name("tl")
                       .DataSource(ds =>
                       {
                            ds.Custom();
                       });
                ) 

In this article
Not finding the help you need?