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

Too much segmentation

2 Answers 27 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Sammy
Top achievements
Rank 1
Sammy asked on 09 Apr 2014, 11:56 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 14 Apr 2014, 08:04 AM
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.

 
0
Sammy
Top achievements
Rank 1
answered on 14 Apr 2014, 11:57 AM
Thanks Pavel! OrgTreeRouter() solved my problem.
Tags
Diagram
Asked by
Sammy
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Sammy
Top achievements
Rank 1
Share this question
or