Select link on diagram click

2 posts, 0 answers
  1. Don
    Don avatar
    40 posts
    Member since:
    Apr 2009

    Posted 21 Nov 2014 Link to this post

    For some reason after upgrading the control the following code doesn't work when the diagram is in read only mode. This used to work. It there some difference in the new version of the control or a different way to do this. BTW, it works for nodes, just not links.

    CustomDiagramLink clickedItem4 = (CustomDiagramLink)currentDiagram.GetLinkAt(pastePoint, 5, true);
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 26 Nov 2014 Link to this post

    Hello Don,

    In the current implementation of the RadDiagram there is no GetLinkAt() method. Also, there is no GetShapeAt() method. Do you mind sharing with us which is the method that you are using for shapes? Also if you elaborate more on your requirements we may suggest another approach which you will be able to implement in order to achieve the same result as the method. Which is the version of our binaries where you were using the GetLinkAt() method? What you have used this method for?

    I am not sure what exactly you have used this method for and in which version of our binaries, but the fact is that it is no longer available in the current implementation. However, I suppose that you have used it to get the link or the shape that is near some point. With the current implementation of the RadDiagram this can be done using custom IHitTestService of the diagram. The attached project demonstrates how you can add a context menu to the RadDiagramConnections of the diagram.

    Please take a look at it and let me know if you need any further assistance.

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