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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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

Example

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

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 event.

Parameters

handler - System.String

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