Customizing Connections and shapes styles

3 posts, 0 answers
  1. arian
    arian avatar
    2 posts
    Member since:
    Nov 2014

    Posted 15 Nov 2014 Link to this post

    hi there.
    i have a data source in which i have to major objects. think of it as a graph in which object type one are nodes and object type two are connections.
    i produced these using rad diagram and list of my types perfectly but problems shown up while i had to object type one which had more than one connection to each other. connections are overlapping on each other. it is important for me to make them separated in order to make content of connections readable.
    would you please help me to find a solution?
    regards
    Arian
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 19 Nov 2014 Link to this post

    Hi Arian,

    I am not completely sure what you wanted to say with: "...while i had to object type one which had more than one connection to each other...".
    However, I assume that you connected both objects with more than one connection so that the connections are overlapped and you want to see the content of those connections.

    If I am right, I would like to tell you that there is no mechanism detecting if two connections are overlapped. This is why with the current implementation of the RadDiagram there is no built in functionality for separating overlapped connections. 

    In order to achieve your requirement you will need to manually detect if there are more than one connections between the same connectors of two different shapes. If you detect such connectors you have two options to visually separate them.
    1. If the connections are of type Bezier, you can change the BezierTention property.
    2. If the connections are of type Polyline, you can add a custom middle points to force the connections to look like in the attached picture.
    Both of these actions can be done in a custom routing service or in code behind using the Connection Manipulation Events of the RadDiagram.

    I hope this information is helpful.

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. arian
    arian avatar
    2 posts
    Member since:
    Nov 2014

    Posted 19 Nov 2014 in reply to Pavel R. Pavlov Link to this post

    thank you Pavel.
    you got it right. im sorry i had a miss spelled word . i meant two Objects not to.
    i will try to handle it ASAP and if its ok i will post it here.
    thank you.
Back to Top