custom shape links

2 posts, 0 answers
  1. Deepak
    Deepak avatar
    2 posts
    Member since:
    Aug 2013

    Posted 04 Oct 2013 Link to this post

    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
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 09 Oct 2013 Link to this post

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