OrgChart<T>
Kendo UI OrgChart component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class OrgChart<T> : WidgetBase, IHtmlAttributesContainer where T : class
Inheritance: objectWidgetBaseOrgChart<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the OrgChart<T> class.
Properties
CardsColors member.
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; }
Gets or sets the DataSourceId.
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; }
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 that returns the template used for GroupHeaderTemplate
public string GroupHeaderTemplateHandler { get; set; }
The id of the script element used for GroupHeaderTemplate
public string GroupHeaderTemplateId { get; set; }
Provides configuration options for the messages present in the OrgChart widget.
public OrgChartMessagesSettings<T> Messages { get; }
The handler that returns the template used for Template
public string TemplateHandler { get; set; }
The id of the script element used for Template
public string TemplateId { get; set; }
Methods
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: