New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Kendo UI OrgChart component

Definition

Constructors

Initializes a new instance of the OrgChart class.

C#
public OrgChart(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Fields

The URL generator.

C#
public readonly IUrlGenerator urlGenerator

Properties

C#
public string[] CardsColors { get; set; }

The data source of the widget which is used to render the OrgChart items. Can be a JavaScript object which represents a valid kendo.data.OrgChartDataSource configuration, a JavaScript array, or an existing kendo.data.OrgChartDataSource instance. If the dataSource option is set to a JavaScript object or an array, the widget will initialize a new kendo.data.OrgChartDataSource instance and will use that value as the DataSource configuration. or If the dataSource option is an existing kendo.data.OrgChartDataSource instance, the widget will use that instance and will not initialize a new one..

C#
public DataSource DataSource { get; }
C#
public string DataSourceId { get; set; }

If set to false, the user will not be able to edit the data to which the OrgChart is bound. By default, editing is enabled.The editable option can also be set to a JavaScript object (which represents the editing configuration).

C#
public OrgChartEditableSettings<T> Editable { get; set; }

Specifies the field the nodes should be grouped by. If any value is passed, the OrgChart uses its grouping rendering mode.

C#
public string GroupField { get; set; }

Provides an option to customize the default template for the group label (using the field value and name by default).

C#
public string GroupHeaderTemplate { get; set; }

The handler for the GroupHeaderTemplate

C#
public string GroupHeaderTemplateHandler { get; set; }

The id for the GroupHeaderTemplate

C#
public string GroupHeaderTemplateId { get; set; }

Provides configuration options for the messages present in the OrgChart widget.

C#
public OrgChartMessagesSettings Messages { get; set; }

Defines a node card template.

C#
public string Template { get; set; }

The handler for the Template

C#
public string TemplateHandler { get; set; }

The id for the Template

C#
public string TemplateId { get; set; }

Methods

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)