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

custom shape links

1 Answer 34 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 04 Oct 2013, 12:33 PM
How to add connection links(top,bottom,right,left) to a customshape which is inherits from raddiagramshape  in code behind ?
If anybody know please let me ,,
Regards
Deepak

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 09 Oct 2013, 09:14 AM
Hello Deepak,

I suppose that you ask about connecting RadDiagramConnection controls to RadDiagramShapes in code. In order to do this, you need to bind the Target and the Source properties of the RadDiagramConnection. These properties are of type IShape, meaning that you need to bind them to the corresponding RadDiagramShape.

Furthermore, you can specify the TargetConnectorPosition and the SourceConnectorPosition properties of the RadDiagramConnection to force the connection to bind to specific connectors. By default the names of the connectors are:
  • "Auto"
  • "Left"
  • "Top"
  • "Right"
  • "Bottom"

If you have not change them you should be able to bind to them in an easy way.

I hope that this information is helpful.


Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Diagram
Asked by
Deepak
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or