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

Defines the fluent API for configuring the DiagramConnectionToSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionToSettingsBuilder<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 DiagramConnectionToSettingsBuilder(DiagramConnectionToSettings settings)
Parameters:settingsDiagramConnectionToSettings

Methods

Defines the name of the target shape connector.

C#
public DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel> Connector(string value)
Parameters:valuestring

The value that configures the target shape connector name.

Returns:

DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().To(t =&gt; t.Connector("Id"))
)
)

Defines the shape id that corresponds to the target of the connection.

C#
public DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel> Id(object value)
Parameters:valueobject

The value that configures the target shape id.

Returns:

DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().To(t =&gt; t.Id("1"))
)
)

Defines the value of point X.

C#
public DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel> X(double value)
Parameters:valuedouble

The value that configures the point X.

Returns:

DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().To(t =&gt; t.X(450))
)
)

Defines the value of point Y.

C#
public DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel> Y(double value)
Parameters:valuedouble

The value that configures the point Y.

Returns:

DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().To(t =&gt; t.Y(70))
)
)