Hello Malky,
Thank you for your interest in these feature s first.
I created a sample test project which shows an Organization structure of 3 levels:
Level One: 1 item
Level Two: 10 items
Level Three: 200 items
If we use a Straight connections (the default ConnectionType) the TipOverTree Layout takes less than a second. You can check this out in the first project attached.
If we change the connection type to Polyline, indeed, the Layout takes about 12-13 seconds. But this is expected. When the connections are Polyline, then the Diagram's Routing Service starts a Router which routes every connection with a default algorithm that tries to minimize the crossings of connections. (please check out the default routing section here). But when it comes up to a Tree Layout and Polyline Connections we have defined a special Routers for this purpose. For every one from the following five LayoutType types (TreeDown, TreeUp, TreeLeft, TreeRight, TipOverTree) we have defined five routers. They are controlled internally by the OrgTreeRouter class but you have to start it manually:
With these settings , the layout also takes less than a second.
A quick note here. You can see the
PrepareShapesForTipOverTreeRouting method. It sets a custom connector in the bottom left part of the OrgChart Shapes. In Q2 2012 Official Release this is mandatory when using the TipOverTree Layout and TipOverTree Router. In the internal build after the Q this is not mandatory - the diagram will use the Bottom Connector instead.
Please also read our
Routing and
Layout help articles. Do not hesitate to ask if you need further assistance.
Greetings,
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>