TimelineEventBuilder

Methods

Change(System.String)

Defines the handler of the Change client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Change(System.Func)

Defines the handler of the Change client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

DataBound(System.String)

Defines the handler of the DataBound client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

DataBound(System.Func)

Defines the handler of the DataBound client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Expand(System.String)

Defines the handler of the Expand client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Expand(System.Func)

Defines the handler of the Expand client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Collapse(System.String)

Defines the handler of the Collapse client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Collapse(System.Func)

Defines the handler of the Collapse client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

ActionClick(System.String)

Defines the handler of the ActionClick client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

ActionClick(System.Func)

Defines the handler of the ActionClick client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Defines the handler of the Navigate client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

Defines the handler of the Navigate client-side event. 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.

RETURNS

Returns the current instance of TimelineEventBuilder .

Example

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

KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Timeline is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see KendoKeydown event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of TimelineEventBuilder .

KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Timeline is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see KendoKeydown event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of TimelineEventBuilder .