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"))
)
Cancel(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Cancel(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Change(System.Func)
Triggered when the selected node has been changed upon user interaction.
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Change(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Collapse(System.Func)
Triggered before a node has been collapsed upon user interaction. Preventable.
For more information see Collapse event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Collapse(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Create(System.Func)
Triggered when a node is about to be created upon user interaction. Preventable.
For more information see Create event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Create(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
DataBinding(System.Func)
Triggered before the actual change in the dataSource occurs. Preventable.
For more information see DataBinding event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.DataBinding(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
DataBound(System.Func)
Triggered after the dataSource change event has been processed (adding/removing/loading/editing items).
For more information see DataBound event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.DataBound(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Delete(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Delete(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Edit(System.Func)
Triggered when a node is about to enter edit mode upon user interaction. Preventable.
For more information see Edit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Edit(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Expand(System.Func)
Triggered before a node has been expanded upon user interaction. Preventable.
For more information see Expand event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Expand(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Save(System.Func)
Triggered when the user attempts to save the current changes on the edited node. Preventable.
For more information see Save event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Save(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Select(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().OrgChart()
.Name("OrgChart")
.Events(events => events.Select(
@<text>
function(e) {
//event handling code
}
</text>
))
)