Too much segmentation

3 posts, 1 answers
  1. Sammy
    Sammy avatar
    15 posts
    Member since:
    Aug 2008

    Posted 09 Apr 2014 Link to this post

    Hi!

    I am trying to create a tree diagram in the code behind. The problem is the connectors are segmented to much. Is there a way to adjust segmentation? Attached you can find the screen grab.

    Thanks,
  2. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 14 Apr 2014 Link to this post

    Hello Sammy,

    I am happy to inform you that there are several options to achieve your requirement. You can change the routing algorithm or you can adjust the default one. In order to adjust the default algorithm, you can change the Telerik.Windows.Diagrams.Core.DiagramConstants.RoutingGridSize. If you want to try different routing algorithms, you can change it by using the MyDiagram.RoutingService.Router property.
    Furthermore, you have a couple of algorithms that you can choose between. You can use the OrgTreeRouter() or the AStarRouter(MyDiagram). For more information please refer to our documentation.

    Regards,
    Pavel R. Pavlov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sammy
    Sammy avatar
    15 posts
    Member since:
    Aug 2008

    Posted 14 Apr 2014 in reply to Pavel R. Pavlov Link to this post

    Thanks Pavel! OrgTreeRouter() solved my problem.
Back to Top