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.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Change event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Collapse event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Create event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the DataBinding event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the DataBound event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Delete event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Edit event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Expand event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Save event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Select event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the KendoKeydown event.
RETURNS
Returns the current instance of 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 event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of OrgChartEventBuilder .