Connector style

2 posts, 0 answers
  1. Tawfek
    Tawfek avatar
    10 posts
    Member since:
    Sep 2013

    Posted 11 Sep 2014 Link to this post

    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
  2. Zarko
    Zarko avatar
    755 posts

    Posted 15 Sep 2014 Link to this post

    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));
    (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.

    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.
Back to Top