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

Connector style

1 Answer 90 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Tawfek
Top achievements
Rank 1
Tawfek asked on 11 Sep 2014, 08:57 AM
Hi
I am using RadDiagram to do some work flow modelling. I found that while the RadDiagram provides a lot of functinalities that I need I am still unable to figure out how to create a line that has additional vertices. I am able to do some diagram such as  the one that I include in Diagram1 picture. But my intention is that I would like the red line to appear as shown in Diagram2. I did set the ConnectionType of the connection to Polyline and set the Diagram RouteConnections property to True but the result was that each of the connector will have to many vertices that I don't need.
Can anyone help me to do this

Thanks and regards
tawfek

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 15 Sep 2014, 04:46 PM
Hello Tawfek,
Unfortunately I can't see the attached pictures (Diagram1 and Diagram2) and because of this I'm not entirely sure what you mean. From your explanation I understand that you want to add additional connection points and if this is the case you should take a look at this help article and try out this code:
var connection = new RadDiagramConnection();
connection.StartPoint = new Point(50, 50);
connection.EndPoint = new Point(450, 50);
connection.ConnectionPoints.Add(new Point(100, 200));
connection.ConnectionPoints.Add(new Point(200, -50));
connection.ConnectionPoints.Add(new Point(300, 150));
connection.ConnectionPoints.Add(new Point(400, 0));
 
this.diagram.AddConnection(connection);
(note: you'd better turn off the RouteConnections)
I hope I was able to help you and if you have more questions please feel free to ask.

Regards,
Zarko
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
Tawfek
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or