Multi link between shapes

5 posts, 2 answers
  1. Clément
    Clément avatar
    5 posts
    Member since:
    Jan 2014

    Posted 31 Jan 2014 Link to this post

    Hello,

    I need to replicate the behavior of the picture attached but... I don't find a way to set it automatically by the RadDiagram.
    Is there any way ?

    Best regards,
    Clément
  2. Answer
    Boris
    Admin
    Boris avatar
    276 posts

    Posted 05 Feb 2014 Link to this post

    Hello Clément,

    From the image that you've sent us it seems that you could use connection routing and custom connectors.
    I've attached a sample project demonstrating those diagram features and I'd like to ask you to examine it and tell us if this is what you're looking for?

    Regards,
    Boris Penev
    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
  4. Clément
    Clément avatar
    5 posts
    Member since:
    Jan 2014

    Posted 10 Feb 2014 in reply to Boris Link to this post

    Hello Boris,

    Thanks for the answer, the custom connectors answer it perfectly.
    The main problem now is the text positionning. It seem that the position is calculated from the drawing zone of the connection and not by the connection itself.

    Regards,
    Clément
  5. Answer
    Boris
    Admin
    Boris avatar
    276 posts

    Posted 11 Feb 2014 Link to this post

    Hello Clément,

    The content placement logic of the RadDiagramConnection is built-in into it and if you want to change it you'll have to use custom connections. To do this you should derive from the RadDiagramConnection class and override its PositionEditElementOverride() method.
    I have attached an updated copy of the previous project that demonstrates how this can be done. 

    Could you please examine it and tell us if this is what you are looking for?

    Regards,
    Boris Penev
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  6. Clément
    Clément avatar
    5 posts
    Member since:
    Jan 2014

    Posted 20 Feb 2014 Link to this post

    Hello boris

    Thanks for the intel, it seems to fit my need. 
    PositionEditElementOverride is computed by the system way to much for me though so I made some additional checking before executing the code inside.

    Thanks again
Back to Top
DevCraft banner