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

Defines the fluent API for configuring the DiagramConnectionFromSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionFromSettingsBuilder<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 DiagramConnectionFromSettingsBuilder(DiagramConnectionFromSettings settings)
Parameters:settingsDiagramConnectionFromSettings

Methods

Defines the name of the source shape connector.

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

The value that configures the source shape connector name.

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

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

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

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

The value that configures the source shape id.

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the x-coordinate of the connection source.

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

The value that configures the x-coordinate.

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().From(f =&gt; f.X(20))
)
)

Defines the y-coordinate of the connection source.

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

The value that configures the y-coordinate.

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

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