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

DiagramShapeDefaultsEditableSettingsBuilder

Methods

Connect(System.Boolean)

Specifies if new connections can be added using the shapes connectors.

Parameters

value - System.Boolean

The value that enables or disables the connect option.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .ShapeDefaults(sd => sd
                 .Editable(e => e.Connect(false))
               )
             )

Drag(System.Boolean)

Specifies if the shapes can be dragged.

Parameters

value - System.Boolean

The value that enables or disables the drag option.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .ShapeDefaults(sd => sd
                 .Editable(e => e.Drag(false))
               )
             )

Remove(System.Boolean)

Specifies if the shapes can be removed.

Parameters

value - System.Boolean

The value that enables or disables the remove option.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .ShapeDefaults(sd => sd
                 .Editable(e => e.Remove(false))
               )
             )

Tools(System.Action)

Specifies the default toolbar tools.

Parameters

configurator - System.Action<DiagramShapeDefaultsEditableSettingsToolFactory>

The action that configures the tools.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .ShapeDefaults(sd => sd
                 .Editable(e => e.Tools(tt => tt.Edit()))
               )
             )

In this article
Not finding the help you need?