OrgChartBuilder<T>
Defines the fluent API for configuring the Kendo UI OrgChart
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class OrgChartBuilder<T> : WidgetBuilderBase<OrgChart<T>, OrgChartBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<OrgChart<T>, OrgChartBuilder<T>>OrgChartBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the OrgChartBuilder<T> class.
Methods
Binds the OrgChart to an IEnumerable collection.
public OrgChartBuilder<T> BindTo(IEnumerable data)
The data collection.
Returns:Returns the current OrgChartBuilder<T> instance.
Binds the OrgChart to an IEnumerable collection.
public OrgChartBuilder<T> BindTo(IEnumerable<T> data)
The data collection.
Returns:Returns the current OrgChartBuilder<T> instance.
Defines the colors that will be shown in the cards.
public OrgChartBuilder<T> CardsColors(string[] value)
A collection of card colors.
Returns:Returns the current OrgChartBuilder<T> instance.
Configures the DataSource that will render the OrgChart items.
public OrgChartBuilder<T> DataSource(Action<OrgChartAjaxDataSourceBuilder<T>> configurator)
The value that configures the datasource.
Returns:Returns the current OrgChartBuilder<T> instance.
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:Returns the current OrgChartBuilder<T> instance.
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 OrgChartBuilder<T> Editable(Action<OrgChartEditableSettingsBuilder<T>> configurator)
The OrgChartEditableSettingsBuilder<T> for the editable setting.
Returns:Returns the current instance of OrgChartBuilder<T> .
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 OrgChartBuilder<T> Editable(bool enabled)
Enables or disables the editable option.
Returns:Returns the current instance of OrgChartEditableSettingsBuilder<T> .
Configures the client-side events.
public OrgChartBuilder<T> Events(Action<OrgChartEventBuilder> configurator)
The client events action.
Returns:Returns the current OrgChartBuilder<T> instance.
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 for GroupField
Returns:Returns the current OrgChartBuilder<T> instance.
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 for GroupHeaderTemplate
Returns:Returns the current OrgChartBuilder<T> instance.
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:Returns the current OrgChartBuilder<T> instance.
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 templateHandler)
The handler that returs the template for GroupHeaderTemplate
Returns:Returns the current OrgChartBuilder<T> instance.
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 templateId)
The ID of the template element for GroupHeaderTemplate
Returns:Returns the current OrgChartBuilder<T> instance.
Provides an option to customize the default template for the group label (using the field value and name by default).
public OrgChartBuilder<T> GroupHeaderTemplateView(IHtmlContent templateView)
The view that contains the template for GroupHeaderTemplate
Returns:Returns the current OrgChartBuilder<T> instance.
Provides configuration options for the messages present in the OrgChart widget.
public OrgChartBuilder<T> Messages(Action<OrgChartMessagesSettingsBuilder<T>> configurator)
The OrgChartMessagesSettingsBuilder<T> for the messages setting.
Returns:Returns the current instance of OrgChartBuilder<T> .
Defines a node card template.
public OrgChartBuilder<T> Template(string value)
The value for Template
Returns:Returns the current OrgChartBuilder<T> instance.
Defines a node card template.
public OrgChartBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current OrgChartBuilder<T> instance.
Defines a node card template.
public OrgChartBuilder<T> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current OrgChartBuilder<T> instance.
Defines a node card template.
public OrgChartBuilder<T> TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current OrgChartBuilder<T> instance.
Defines a node card template.
public OrgChartBuilder<T> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current OrgChartBuilder<T> instance.