Change RadDiagramConnection.TargetConnectorPosition in OrgChartDiagram

2 posts, 0 answers
  1. Peter
    Peter avatar
    6 posts
    Member since:
    Jun 2012

    Posted 20 May 2013 Link to this post


    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?

  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 22 May 2013 Link to this post

    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.

    Petar Mladenov

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top