OrgChart<T>
Kendo UI OrgChart component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class OrgChart<T> : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent where T : class
Inheritance: objectWidgetBaseOrgChart<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the OrgChart class.
public OrgChart(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Fields
The URL generator.
public readonly IUrlGenerator urlGenerator
Properties
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..
public DataSource DataSource { get; }
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).
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.
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).
public string GroupHeaderTemplate { get; set; }
The handler for the GroupHeaderTemplate
public string GroupHeaderTemplateHandler { get; set; }
The id for the GroupHeaderTemplate
public string GroupHeaderTemplateId { get; set; }
Provides configuration options for the messages present in the OrgChart widget.
public OrgChartMessagesSettings Messages { get; set; }
The handler for the Template
public string TemplateHandler { get; set; }
The id for the Template
public string TemplateId { get; set; }
Methods
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: