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

Defines the fluent API for configuring the DiagramConnectionDefaultsEditableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionDefaultsEditableSettingsBuilder<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 DiagramConnectionDefaultsEditableSettingsBuilder(DiagramConnectionDefaultsEditableSettings settings)
Parameters:settingsDiagramConnectionDefaultsEditableSettings

Methods

Specifies if the connections can be dragged by default.

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

The value that enables or disables the Drag option.

Returns:

DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

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

Specifies whether the connection path can be reshaped by the user. When enabled, dragging a connection handle adds or updates connection points to reflect the new route. User-defined points are shown as hollow circular markers and can be removed by double-clicking them.

C#
public DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> Points(Action<DiagramConnectionDefaultsEditablePointsSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionDefaultsEditablePointsSettingsBuilder<TShapeModel, TConnectionModel>>

The action that configures the points.

Returns:

DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

Specifies whether the connection path can be reshaped by the user. When enabled, dragging a connection handle adds or updates connection points to reflect the new route. User-defined points are shown as hollow circular markers and can be removed by double-clicking them.

C#
public DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> Points(bool enabled)
Parameters:enabledbool

Enables or disables the points option.

Returns:

DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

Specifies if the connections can be removed by default.

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

The value that configures the Remove option.

Returns:

DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>

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

Specifies the default toolbar tools of the connections

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

The action that configures the tools.

Returns:

DiagramConnectionDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>