Connection
This article explains how to configure the connections between two or more shapes in Telerik ASP.NET Diagramming component. Below you can find examples that show how to create a standard shape connection, as well as how to set intermediate connection points to a connection.
The DiagramConnection object is a visual link or connection in the graph or diagram. Each diagram has a connections collection, containing all configured connections. Connections are usually created in order to connect to shapes of a Diagram instance. Through the DiagramConnection object you have access to properties like StartCap and EndCap, and composite properties for configuring the FromSettings, HoverSettings, StrokeSettings, ToSettings, PointsCollection, etc.
StartCap
The start cap (arrow, head or decoration) represents the beginning of the connection. The appearance of this point can be controlled by configuring its StartCap property:
-
"none"—no cap
-
"ArrowStart"—a filled arrow
-
"FilledCircle"—a filled circle
Figure 1. StartCap - the start point of a connection

EndCap
The end cap (arrow, head or decoration) represents the end of the connection. The appearance of this point can be controlled by configuring its EndCap property:
-
"none"—no cap
-
"ArrowEnd"—a filled arrow
-
"FilledCircle"—a filled circle
Figure 2: EndCap - the end point of a connection

ContentSettings
Defines the content settings for the connection, including the Text of the connection and the Color of the text.
FromSettings
Defines the connection settings for the source shape, including the ID of the shape and the Connector we will connect to.
ToSettings
Defines the connection settings for the target shape, including the ID of the shape and the Connector we will connect to.
StrokeSettings
Defines the stroke configuration of a connection. You can configure the following stroke-specific properties through the DiagramConnection's composite StrokeSettings property:
Color—defines the color of the connection.
Width—defines the thickness or width of the connection.
DashType—defines the dash type of the connection. The following dash types are supported:
-
"Solid"—a solid line.
-
"Dash"—a line consisting of dashes.
-
"DashDot"—a line consisting of a repeating pattern of dash-dot.
-
"Dot"—a line consisting of dots.
-
"LongDash"—a line consisting of a repeating pattern of long-dash.
-
"LongDashDot"—a line consisting of a repeating pattern of long-dash-dot.
-
"LongDashDotDot"