OrgChartEditableSettingsBuilder
Methods
Form(System.Action)
Configures the Form that will be used for editing OrgChart items.
Parameters
configurator - System.Action<FormBuilder>
The action that configures the Form.
RETURNS
Returns the current OrgChartEditableSettingsBuilder instance.
Example
@(Html.Kendo().OrgChart<EmployeeViewModel>()
.Name("orgchart")
.Editable(editable => editable
.Form(form => form
.Field(f => f.Name)
.Field(f => f.Position)
.Field(f => f.Department)
)
)
)
Create(System.Boolean)
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.
Parameters
value - System.Boolean
The value for Create
RETURNS
Returns the current OrgChartEditableSettingsBuilder instance.
Destroy(System.Boolean)
Allows the user to delete items. If set to false, delete item will not be available in the item edit pop-up menu.
Parameters
value - System.Boolean
The value for Destroy
RETURNS
Returns the current OrgChartEditableSettingsBuilder instance.
Fields(System.Boolean)
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.
Parameters
value - System.Boolean
The value for Fields
RETURNS
Returns the current OrgChartEditableSettingsBuilder instance.
Parent(System.Boolean)
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.
Parameters
value - System.Boolean
The value for Parent
RETURNS
Returns the current OrgChartEditableSettingsBuilder instance.