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
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.