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

Defines the fluent API for configuring the DiagramShapeEditableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeEditableSettingsBuilder<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 DiagramShapeEditableSettingsBuilder(DiagramShapeEditableSettings settings)
Parameters:settingsDiagramShapeEditableSettings

Methods

Specifies whether the connectors must appear on hover. If set to "false", the user will not be able to create new connections from the shape to other shapes. Also, it will not be possible to change the connector of an existing connection between this and another shape.

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

The value that configures the connect.

Returns:

DiagramShapeEditableSettingsBuilder<TShapeModel, TConnectionModel>

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

Specifies the toolbar tools.

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

The action that configures the tools.

Returns:

DiagramShapeEditableSettingsBuilder<TShapeModel, TConnectionModel>