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

Razor
 
             @(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

Razor
 
             @(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

Razor
 
             @(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

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