# DiagramEditableSettingsBuilder

## Methods

### ShapeTemplateName(System.String)

Specifies the name of the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

#### Parameters

##### value - `System.String`

The name of the Razor view editor template.

#### RETURNS

The current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

#### Example

```
 
             @(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                 .Editable(editable => editable.ShapeTemplateName("DiagramShapeEditor"))
             )
             
```

### ShapeTemplateComponentName(System.String)

Specifies the name of the editor template that contains a Template component, which defines the editors for the shape data item. The editor template must be added in the 'Views/Shared/EditorTemplates/' folder.

#### Parameters

##### templateName - `System.String`

The name of the Razor view editor template.

#### RETURNS

The current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

#### Example

```
 
             @(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
                .Name("diagram")
                 .Editable(editable => editable.ShapeTemplateComponentName("DiagramShapeEditor"))
             )
             
```

### ConnectionTemplate(System.String)

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

#### Parameters

##### value - `System.String`

The value for ConnectionTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ConnectionTemplateId(System.String)

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

#### Parameters

##### templateId - `System.String`

The ID of the template element for ConnectionTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ConnectionTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for ConnectionTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ConnectionTemplateHandler(System.String)

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for ConnectionTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ConnectionTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the connectiontemplate.

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### Drag(System.Action)

Specifies if the shapes and connections can be dragged.

#### Parameters

##### configurator - System.Action<[DiagramEditableDragSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditabledragsettingsbuilder)>

The configurator for the drag setting.

#### RETURNS

Returns the current instance of [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) .

### Drag(System.Boolean)

Specifies if the shapes and connections can be dragged.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the drag option.

#### RETURNS

Returns the current instance of [DiagramEditableDragSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditabledragsettingsbuilder) .

### Remove(System.Boolean)

Specifies if the shapes and connections can be removed.

#### Parameters

##### value - `System.Boolean`

The value for Remove

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### Resize(System.Action)

Defines the look-and-feel of the shape resizing handles.

#### Parameters

##### configurator - System.Action<[DiagramEditableResizeSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditableresizesettingsbuilder)>

The configurator for the resize setting.

#### RETURNS

Returns the current instance of [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) .

### Resize(System.Boolean)

Defines the look-and-feel of the shape resizing handles.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the resize option.

#### RETURNS

Returns the current instance of [DiagramEditableResizeSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditableresizesettingsbuilder) .

### Rotate(System.Action)

Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.

#### Parameters

##### configurator - System.Action<[DiagramEditableRotateSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablerotatesettingsbuilder)>

The configurator for the rotate setting.

#### RETURNS

Returns the current instance of [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) .

### Rotate(System.Boolean)

Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the rotate option.

#### RETURNS

Returns the current instance of [DiagramEditableRotateSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablerotatesettingsbuilder) .

### ShapeTemplate(System.String)

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

#### Parameters

##### value - `System.String`

The value for ShapeTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ShapeTemplateId(System.String)

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

#### Parameters

##### templateId - `System.String`

The ID of the template element for ShapeTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ShapeTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for ShapeTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ShapeTemplateHandler(System.String)

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for ShapeTemplate

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### ShapeTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the shapetemplate.

#### RETURNS

Returns the current [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) instance.

### Tools(System.Action)

Specifies the toolbar tools. Supports all options supported by the toolbar.items property. Predefined tools are: "edit" - The selected item can be edited.; "createShape" - Adds an empty shape data item and a popup window is displayed.; "createConnection" - Adds an empty connection data item and a popup window is displayed.; "undo" - Undoes the previous action.; "redo" - Executes again the previously undone action.; "rotateClockwise" - The selected items can be rotated clockwise. The default rotation value is 90 degree. or "rotateAnticlockwise" - The selected items can be rotated anticlockwise. The default rotation value is 90 degree..

#### Parameters

##### configurator - System.Action<[DiagramEditableSettingsToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingstoolfactory)>

The configurator for the tools setting.

#### RETURNS

Returns the current instance of [DiagramEditableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/diagrameditablesettingsbuilder) .
