Just researching this component to see if it can do what I want.
I have slightly modified the 'First look' example to see if I can modify it to suit.
From reading the documentation, I should be able to force the connector to attach to a shape on one side , but I cannot get it to work.
As a simple test I tried to add a connection between a member to a Node
Private
Sub
PopulateWithData()
Dim
dataXml
As
XElement = XElement.Load(
"Organization.xml"
)
For
Each
element
As
XElement
In
dataXml.Elements(
"Node"
)
Dim
node
As
OrgContainerShape =
Me
.CreateNode(element,
Nothing
)
node.BaseColor =
Me
.groupColor(0)
Me
.RadDiagram1.AddShape(node)
currentLayoutSettings.Roots.Add(node)
Me
.GetSubNodes(element, node, 2)
Next
'------- Add a new connection as a test -------------------------------
Dim
connection
As
New
RadDiagramConnection()
connection.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline
Dim
parentNode =
Me
.RadDiagram1.Shapes(0)
Dim
destNode =
Me
.RadDiagram1.Shapes(7)
connection.Source = parentNode
connection.Target = destNode
connection.SourceConnectorPosition =
"Left"
connection.TargetConnectorPosition =
"Auto"
Me
.RadDiagram1.AddConnection(connection)
End
Sub
But it always connects to the bottom of the shape.
What am I doing wrong? ( I have checked and the shape does have a Left connector)
Many thanks
Rob