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

Defines the fluent API for configuring OrgChartEditableSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class OrgChartEditableSettingsBuilder<T> where T : class

Inheritance: objectOrgChartEditableSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

OrgChartEditableSettingsBuilder method.

C#
public OrgChartEditableSettingsBuilder(OrgChartEditableSettings<T> container)
Parameters:containerOrgChartEditableSettings<T>

Properties

Gets or sets the Container.

C#
protected OrgChartEditableSettings<T> Container { get; }

Methods

Allows the user to create new items as children of existing ones. If set to false, creating new items will not be available in the item edit pop-up menu.

C#
public OrgChartEditableSettingsBuilder<T> Create(bool value)
Parameters:valuebool

The value for Create

Returns:

OrgChartEditableSettingsBuilder<T>

Returns the current OrgChartEditableSettingsBuilder<T> instance.

Allows the user to delete items. If set to false, delete item will not be available in the item edit pop-up menu.

C#
public OrgChartEditableSettingsBuilder<T> Destroy(bool value)
Parameters:valuebool

The value for Destroy

Returns:

OrgChartEditableSettingsBuilder<T>

Returns the current OrgChartEditableSettingsBuilder<T> instance.

Allows the user to edit the title, name, and avatar of the item. If set to false, editing those fields will not be available in the pop-up editor of the widget.

C#
public OrgChartEditableSettingsBuilder<T> Fields(bool value)
Parameters:valuebool

The value for Fields

Returns:

OrgChartEditableSettingsBuilder<T>

Returns the current OrgChartEditableSettingsBuilder<T> instance.

Configures the Form that will be used for editing OrgChart items.

C#
public OrgChartEditableSettingsBuilder<T> Form(Action<FormBuilder<T>> configurator)
Parameters:configuratorAction<FormBuilder<T>>

The action that configures the Form.

Returns:

OrgChartEditableSettingsBuilder<T>

Returns the current OrgChartEditableSettingsBuilder<T> instance.

Example:
C#
@(Html.Kendo().OrgChart&lt;EmployeeViewModel&gt;()
.Name("orgchart")
.Editable(editable =&gt; editable
.Form(form =&gt; form
.Field(f =&gt; f.Name)
.Field(f =&gt; f.Position)
.Field(f =&gt; f.Department)
)
)
)

Allows editing the structure (id/parentId relation). If the parentId has also configuration in the form configuration object, the editable.parent value will be taken into account. If set to false, editing the id/parentId relation will not be available.

C#
public OrgChartEditableSettingsBuilder<T> Parent(bool value)
Parameters:valuebool

The value for Parent

Returns:

OrgChartEditableSettingsBuilder<T>

Returns the current OrgChartEditableSettingsBuilder<T> instance.