Thanks to visit codestin.com
Credit goes to www.telerik.com

OrgChart

Example

Razor
<kendo-orgchart>
    <editable></editable>
    <group-header-template></group-header-template>
    <messages />
    <node-template></node-template>
    <orgchart-datasource></orgchart-datasource>
</kendo-orgchart>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
cards-colorsString[]An array of strings defining the cards top-border color for each level starting from the top level. If not set, the colors from the Kendo Chart series will be used.
datasource-idStringThe Id of the data source.
group-fieldStringSpecifies the field the nodes should be grouped by. If any value is passed, the OrgChart uses its grouping rendering mode.
group-header-templateStringProvides an option to customize the default template for the group label (using the field value and name by default).
group-header-template-handlerStringProvides an option to customize the default template for the group label (using the field value and name by default). This option expects the name of a JavaScript function that will be called to return the template.
group-header-template-idStringProvides an option to customize the default template for the group label (using the field value and name by default). This option expects the ID of the script element that contains the template.
group-header-template-viewIHtmlContentProvides an option to customize the default template for the group label (using the field value and name by default). This option expects the instance containing the created HTML.
on-cancelStringThe name of the JavaScript function that will handle the cancel event. Triggered when the user is about to cancel the changes for the currently edited node. Preventable.
on-changeStringThe name of the JavaScript function that will handle the change event. Triggered when the selected node has been changed upon user interaction.
on-collapseStringThe name of the JavaScript function that will handle the collapse event. Triggered before a node has been collapsed upon user interaction. Preventable.
on-createStringThe name of the JavaScript function that will handle the create event. Triggered when a node is about to be created upon user interaction. Preventable.
on-data-bindingStringThe name of the JavaScript function that will handle the dataBinding event. Triggered before the actual change in the dataSource occurs. Preventable.
on-data-boundStringThe name of the JavaScript function that will handle the dataBound event. Triggered after the dataSource change event has been processed (adding/removing/loading/editing items).
on-deleteStringThe name of the JavaScript function that will handle the delete event. Triggered when a node is about to be deleted as of a consequence of user interaction. Preventable.
on-editStringThe name of the JavaScript function that will handle the edit event. Triggered when a node is about to enter edit mode upon user interaction. Preventable.
on-expandStringThe name of the JavaScript function that will handle the expand event. Triggered before a node has been expanded upon user interaction. Preventable.
on-saveStringThe name of the JavaScript function that will handle the save event. Triggered when the user attempts to save the current changes on the edited node. Preventable.
on-selectStringThe name of the JavaScript function that will handle the select event. Triggered when the user attempts to select a new node or group of nodes (in grouped scenario). Preventable.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
templateStringRepresents a collection of templates defined for the component.
template-handlerStringDefines a node card template. This option expects the name of a JavaScript function that will be called to return the template.
template-idStringDefines a node card template. This option expects the ID of the script element that contains the template.
template-viewIHtmlContentDefines a node card template. This option expects the instance containing the created HTML.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support