OrgChartBuilder<T>
Defines the fluent API for configuring the Kendo OrgChart for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class OrgChartBuilder<T> : WidgetBuilderBase<OrgChart<T>, OrgChartBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<OrgChart<T>, OrgChartBuilder<T>>OrgChartBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the OrgChart class.
Methods
Binds the OrgChart to an IEnumerable collection.
public OrgChartBuilder<T> BindTo(IEnumerable data)
The data collection.
Returns:Binds the OrgChart to an IEnumerable collection.
public OrgChartBuilder<T> BindTo(IEnumerable<T> data)
The data collection.
Returns:Defines the colors that will be shown in the cards.
public OrgChartBuilder<T> CardsColors(string[] value)
A collection of card colors.
Returns:Configures the DataSource that will render the OrgChart items.
public OrgChartBuilder<T> DataSource(Action<OrgChartAjaxDataSourceBuilder<T>> configurator)
The value that configures the datasource.
Returns:Sets an external DataSource instance as a DataSource of the OrgChart.
public OrgChartBuilder<T> DataSource(string dataSourceId)
The id of the data source instance.
Returns: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.
public OrgChartBuilder<T> Editable(Action<OrgChartEditableSettingsBuilder<T>> configurator)
The action that configures the editable.
Returns: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.
public OrgChartBuilder<T> Editable(bool enabled)
Enables or disables the editable option.
Returns:Configures the client-side events.
public OrgChartBuilder<T> Events(Action<OrgChartEventBuilder> configurator)
The client events action.
Returns:Specifies the field the nodes should be grouped by. If any value is passed, the OrgChart uses its grouping rendering mode.
public OrgChartBuilder<T> GroupField(string value)
The value that configures the groupfield.
Returns:Provides an option to customize the default template for the group label (using the field value and name by default).
public OrgChartBuilder<T> GroupHeaderTemplate(string value)
The value that configures the groupheadertemplate.
Returns:Provides an option to customize the default template for the group label (using the field value and name by default).
public OrgChartBuilder<T> GroupHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the groupheadertemplate.
Returns:Provides an option to customize the default template for the group label (using the field value and name by default).
public OrgChartBuilder<T> GroupHeaderTemplateHandler(string value)
The value that configures the groupheadertemplate.
Returns:Provides an option to customize the default template for the group label (using the field value and name by default).
public OrgChartBuilder<T> GroupHeaderTemplateId(string value)
The value that configures the groupheadertemplate.
Returns:Provides an option to customize the default template for the group label (using the field value and name by default).
public OrgChartBuilder<T> GroupHeaderTemplateView(MvcHtmlString value)
The value that configures the groupheadertemplate.
Returns:Provides configuration options for the messages present in the OrgChart widget.
public OrgChartBuilder<T> Messages(Action<OrgChartMessagesSettingsBuilder<T>> configurator)
The action that configures the messages.
Returns:Defines a node card template.
public OrgChartBuilder<T> Template(string value)
The value that configures the template.
Returns:Defines a node card template.
public OrgChartBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Defines a node card template.
public OrgChartBuilder<T> TemplateHandler(string value)
The value that configures the template.
Returns:Defines a node card template.
public OrgChartBuilder<T> TemplateId(string value)
The value that configures the template.
Returns:Defines a node card template.
public OrgChartBuilder<T> TemplateView(MvcHtmlString value)
The value that configures the template.
Returns: