This is a migrated thread and some comments may be shown as answers.

Change RadDiagramConnection.TargetConnectorPosition in OrgChartDiagram

1 Answer 88 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 20 May 2013, 09:29 AM
Hi!

I use polyline in OrgChartDiagram with OrgTreeRouter. And I can't change TargetConnectorPosition property of polyline connection (only with Straight, Bezier). After change TargetConnectorPosition to "Right" it returned to initial state ("Left"). I need connection like red on image. How can I do it?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 May 2013, 08:47 AM
Hello Peter,

As I see in your picture you use the TipOverTreeLayout and OrgTreeRouter. Actually in TipOverTree the connections that link root level and second level items use the bottom and top connectors of the shapes. But the connections below second level start from custom connector and end in left connector. These settings are typical for TipOverTree Layout of usual tree structures and we have achieved it with both Layout (position of shapes) and Routing (the way connections are drawn). Your settings do not work because OrgTreeRouter internally sets the connectors which connections use and this local setting has bigger priority than your style setting.
You can consider one of these workarounds:
1) Use OrgTreeRouter to route the connections and then programmatically fix what you need by setting the (Source/Target)ConnectorPosition on some of the connections.
2) Implement custom Router. For more info, please check out the last section in our routing help article.

Regards,
Petar Mladenov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Peter
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or