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

Defines the fluent API for configuring the DiagramShapeDefaultsEditableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public DiagramShapeDefaultsEditableSettingsBuilder(DiagramShapeDefaultsEditableSettings settings)
Parameters:settingsDiagramShapeDefaultsEditableSettings

Methods

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

C#
public DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> Connect(bool value)
Parameters:valuebool

The value that enables or disables the connect option.

Returns:

DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Editable(e =&gt; e.Connect(false))
)
)

Specifies if the shapes can be dragged.

C#
public DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> Drag(bool value)
Parameters:valuebool

The value that enables or disables the drag option.

Returns:

DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Editable(e =&gt; e.Drag(false))
)
)

Specifies if the shapes can be removed.

C#
public DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> Remove(bool value)
Parameters:valuebool

The value that enables or disables the remove option.

Returns:

DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Editable(e =&gt; e.Remove(false))
)
)

Specifies the default toolbar tools.

C#
public DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> Tools(Action<DiagramShapeDefaultsEditableSettingsToolFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsEditableSettingsToolFactory<TShapeModel, TConnectionModel>>

The action that configures the tools.

Returns:

DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>