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

TimelineEventBuilder

Methods

Change(System.String)

Fires when a new event is opened.

For more information see Change event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the change event.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                         .Change("onChange")
                    )
                )

Change(System.Func)

Fires when a new event is opened.

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                        .Change(@<text>
                            function(){
                                // Handle the Change event inline.
                            }
                          </text>
                        )
                    )
                )

DataBound(System.String)

Fires when the Timeline is bound to data.

For more information see DataBound event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the dataBound event.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                         .DataBound("onDataBound")
                    )
                )

DataBound(System.Func)

Fires when the Timeline is bound to data.

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                        .DataBound(@<text>
                            function(){
                                // Handle the DataBound event inline.
                            }
                          </text>
                        )
                    )
                )

Expand(System.String)

Fires when an event is going to be expanded.

For more information see Expand event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the expand event.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                         .Expand("onExpand")
                    )
                )

Expand(System.Func)

Fires when an event is going to be expanded.

For more information see Expand event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                        .Expand(@<text>
                            function(){
                                // Handle the Expand event inline.
                            }
                          </text>
                        )
                    )
                )

Collapse(System.String)

Fires when an event is going to be collapsed.

For more information see Collapse event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the collapse event.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                         .Collapse("onCollapse")
                    )
                )

Collapse(System.Func)

Fires when an event is going to be collapsed.

For more information see Collapse event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                        .Collapse(@<text>
                            function(){
                                // Handle the Collapse event inline.
                            }
                          </text>
                        )
                    )
                )

ActionClick(System.String)

Fires when an action for an event is clicked.

For more information see ActionClick event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the actionClick event.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                         .ActionClick("onActionClick")
                    )
                )

ActionClick(System.Func)

Fires when an action for an event is clicked.

For more information see ActionClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                        .ActionClick(@<text>
                            function(){
                                // Handle the ActionClick event inline.
                            }
                          </text>
                        )
                    )
                )

Fires when the left or right arrow is clicked.

For more information see Navigate event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the navigate event.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                         .Navigate("onNavigate")
                    )
                )

Fires when the left or right arrow is clicked.

For more information see Navigate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


                @(Html.Kendo().Timeline<Event>()
                    .Name("timeline")
                    .Events(events =>events
                        .Navigate(@<text>
                            function(){
                                // Handle the ActionClick event inline.
                            }
                          </text>
                        )
                    )
                )

In this article
Not finding the help you need?