OrgChartEventBuilder
Methods
Cancel(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Cancel("onCancel"))
)
Change(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Change("onChange"))
)
Collapse(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Collapse("onCollapse"))
)
Create(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Create("onCreate"))
)
DataBinding(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.DataBinding("onDataBinding"))
)
DataBound(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.DataBound("onDataBound"))
)
Delete(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Delete("onDelete"))
)
Edit(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Edit("onEdit"))
)
Expand(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Expand("onExpand"))
)
Save(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Save("onSave"))
)
Select(System.String)
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
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Select("onSelect"))
)