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

Some questions about Routing the Link lines & AutoLayout

7 Answers 102 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 28 Sep 2012, 09:31 PM
I need to create a workflow style diagram which includes IF...THEN  and DO...WHILE logic structures.   The issue I'm having is finding a way to route lines.

1.   In the case of DO...WHILE loop -- is there a way to route lines back in the chain, and route over/around the other nodes ?

2.,  You can set the ROOT as an element in a Tree Layout, but can you set the end of the (in my case) workflow, and still use the AutoLayout method?     

3.  Is there a way to create multiple links between two Node objects and have the lines separated, but running parallel, to the target node?



Thanks 

7 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 Oct 2012, 10:59 AM
Hello Tom,

 1) Our default Connection Routing tries to route the connections in order to minimize the number of crossings between shapes and connections. But it might be too slow in many scenarios. We highly suggest you to implement your own Custom Routing Algorithm for this specific scenario.
Please check out this help article for more info:
Diagram Features Routing: Section Default Routing and Section Custom Routing.
2) There is no property to control the appearance of the leaf-nodes in the Layout Settings of the diagram. However, we are not very sure what you are trying to achieve. Is it possible for you to send us some snapshots of the desired effect?
3) You are able to create multiple links which connect 2 particular shapes. However, in order to distinguish them, you have to set different SourceConnectorPosition and TargetConnectorPosition of these connections. Still , if you need to use equal Source and target ConnectorPositions for all connections, you have to use CustomRouting to separate them - the get route points must return different Point collections for every connection. Please check again the Custom Routing Section in the mentioned article - it might be very useful in this scenario.

Let us know if you need further assistance.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tom
Top achievements
Rank 1
answered on 11 Dec 2012, 05:16 PM
Thanks for the advice.   And, I apologize for the long time between responses --- 

On point #2, see the attachment.   This shows the ideal output we'd like to see.  

Particularly note the Start & End.    Using the default routing, you can set the root, but it doesn't allow you to select the 'Peak' or top of the tree --- the end of a horizontal flowchart, in this case, if the start is the root.
0
Petar Mladenov
Telerik team
answered on 14 Dec 2012, 12:48 PM
Hi Tom,

 During this Q we will be working on a FlowChart example and we hope it will be helpful. Currently there is no implemented Flow Layout , but if we create one we will consider parameters to determine the start and end node. We appreciate your suggestion.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tom
Top achievements
Rank 1
answered on 15 Mar 2013, 07:00 PM
Were there any updates in regards to building a flowchart sample or any additional functionality? 

I built a solution for this, but it's far from perfect -- and it would be great to find a magic bullet for these issues.


Thanks
0
Petar Mladenov
Telerik team
answered on 20 Mar 2013, 08:58 AM
Hi Tom,

Unfortunately, we did not manage to create a FlowChart Example during last Queue. We are currently working on such example and we will do our best to have it alive for Q2 2013. Please excuse us if there is any inconvenience caused.
Meanwhile, we will be glad to assist you with the issues you have hit while building your project.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ben
Top achievements
Rank 1
answered on 17 Jun 2013, 10:48 AM
Hi,

We need to do something similar to this, has any progress been made on the example?

Thanks,
Ben.
0
Petar Mladenov
Telerik team
answered on 18 Jun 2013, 08:01 AM
Hello Ben,

 Unfortunately we did not succeed to provide a Flow Chart example for this Q.

Regards,
Petar Mladenov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Tom
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Tom
Top achievements
Rank 1
ben
Top achievements
Rank 1
Share this question
or