# OrgChartEventBuilder

## Methods

### Cancel(System.String)

Defines the handler of the Cancel client-side event. Triggered when the user is about to cancel the changes for the currently edited node. Preventable.

For more information see [Cancel](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/cancel) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Cancel("onCancel"))
            )
             
```

### Cancel(System.Func)

Defines the handler of the Cancel client-side event. Triggered when the user is about to cancel the changes for the currently edited node. Preventable.

For more information see [Cancel](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/cancel) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Cancel(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Change(System.String)

Defines the handler of the Change client-side event. Triggered when the selected node has been changed upon user interaction.

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

#### Example

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

### Change(System.Func)

Defines the handler of the Change client-side event. Triggered when the selected node has been changed upon user interaction.

For more information see [Change](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/change) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Change(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Collapse(System.String)

Defines the handler of the Collapse client-side event. Triggered before a node has been collapsed upon user interaction. Preventable.

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Collapse("onCollapse"))
            )
             
```

### Collapse(System.Func)

Defines the handler of the Collapse client-side event. Triggered before a node has been collapsed upon user interaction. Preventable.

For more information see [Collapse](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/collapse) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Collapse(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Create(System.String)

Defines the handler of the Create client-side event. Triggered when a node is about to be created upon user interaction. Preventable.

For more information see [Create](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/create) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Create("onCreate"))
            )
             
```

### Create(System.Func)

Defines the handler of the Create client-side event. Triggered when a node is about to be created upon user interaction. Preventable.

For more information see [Create](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/create) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Create(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### DataBinding(System.String)

Defines the handler of the DataBinding client-side event. Triggered before the actual change in the dataSource occurs. Preventable.

For more information see [DataBinding](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/databinding) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.DataBinding("onDataBinding"))
            )
             
```

### DataBinding(System.Func)

Defines the handler of the DataBinding client-side event. Triggered before the actual change in the dataSource occurs. Preventable.

For more information see [DataBinding](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/databinding) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.DataBinding(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### DataBound(System.String)

Defines the handler of the DataBound client-side event. Triggered after the dataSource change event has been processed (adding/removing/loading/editing items).

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.DataBound("onDataBound"))
            )
             
```

### DataBound(System.Func)

Defines the handler of the DataBound client-side event. Triggered after the dataSource change event has been processed (adding/removing/loading/editing items).

For more information see [DataBound](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/databound) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.DataBound(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Delete(System.String)

Defines the handler of the Delete client-side event. Triggered when a node is about to be deleted as of a consequence of user interaction. Preventable.

For more information see [Delete](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/delete) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Delete("onDelete"))
            )
             
```

### Delete(System.Func)

Defines the handler of the Delete client-side event. Triggered when a node is about to be deleted as of a consequence of user interaction. Preventable.

For more information see [Delete](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/delete) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Delete(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Edit(System.String)

Defines the handler of the Edit client-side event. Triggered when a node is about to enter edit mode upon user interaction. Preventable.

For more information see [Edit](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/edit) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Edit("onEdit"))
            )
             
```

### Edit(System.Func)

Defines the handler of the Edit client-side event. Triggered when a node is about to enter edit mode upon user interaction. Preventable.

For more information see [Edit](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/edit) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Edit(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Expand(System.String)

Defines the handler of the Expand client-side event. Triggered before a node has been expanded upon user interaction. Preventable.

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Expand("onExpand"))
            )
             
```

### Expand(System.Func)

Defines the handler of the Expand client-side event. Triggered before a node has been expanded upon user interaction. Preventable.

For more information see [Expand](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/expand) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Expand(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Save(System.String)

Defines the handler of the Save client-side event. Triggered when the user attempts to save the current changes on the edited node. Preventable.

For more information see [Save](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/save) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Save("onSave"))
            )
             
```

### Save(System.Func)

Defines the handler of the Save client-side event. Triggered when the user attempts to save the current changes on the edited node. Preventable.

For more information see [Save](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/save) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Save(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### Select(System.String)

Defines the handler of the Select client-side event. Triggered when the user attempts to select a new node or group of nodes (in grouped scenario). Preventable.

For more information see [Select](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/select) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                        .Name("OrgChart")
                        .Events(events => events.Select("onSelect"))
            )
             
```

### Select(System.Func)

Defines the handler of the Select client-side event. Triggered when the user attempts to select a new node or group of nodes (in grouped scenario). Preventable.

For more information see [Select](https://docs.telerik.com/kendo-ui/api/ui/orgchart/events/select) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

#### Example

```
 
             @( Html.Kendo().OrgChart()
                      .Name("OrgChart")
                      .Events(events => events.Select(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )
             
```

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the OrgChart 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/orgchart/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 [OrgChartEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/orgcharteventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the OrgChart 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/orgchart/events/kendokeydown) event.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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