# 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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder) .

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/change) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder) .

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/databound) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder) .

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/expand) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder) .

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/collapse) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder) .

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/actionclick) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

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

### Navigate(System.String)

Defines the handler of the Navigate client-side event. Fires when the left or right arrow is clicked.

For more information see [Navigate](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/timelineeventbuilder) .

#### Example

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

### Navigate(System.Func)

Defines the handler of the Navigate client-side event. Fires when the left or right arrow is clicked.

For more information see [Navigate](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/navigate) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
                @(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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/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](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/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](https://docs.telerik.com/kendo-ui/api/ui/timeline/events/kendokeydown) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

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