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

Customizing Connections and shapes styles

2 Answers 159 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
arian
Top achievements
Rank 1
arian asked on 15 Nov 2014, 11:29 AM
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 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 19 Nov 2014, 10:29 AM
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.

 
0
arian
Top achievements
Rank 1
answered on 19 Nov 2014, 11:32 AM
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.
Tags
Diagram
Asked by
arian
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
arian
Top achievements
Rank 1
Share this question
or