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

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.

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.

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

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

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

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

ConnectionTemplate(Kendo.Mvc.UI.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.

Drag(System.Action)

Specifies if the shapes and connections can be dragged.

Parameters

configurator - System.Action<DiagramEditableDragSettingsBuilder>

The configurator for the drag setting.

Drag(System.Boolean)

Specifies if the shapes and connections can be dragged.

Parameters

enabled - System.Boolean

Enables or disables the drag option.

Remove(System.Boolean)

Specifies if the shapes and connections can be removed.

Parameters

value - System.Boolean

The value for Remove

Resize(System.Action)

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

Parameters

configurator - System.Action<DiagramEditableResizeSettingsBuilder>

The configurator for the resize setting.

Resize(System.Boolean)

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

Parameters

enabled - System.Boolean

Enables or disables the resize option.

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>

The configurator for the rotate setting.

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.

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

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

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

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

ShapeTemplate(Kendo.Mvc.UI.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.

Tools(System.Action)

Specifies the 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>

The configurator for the tools setting.

In this article
Not finding the help you need?