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

Select link on diagram click

1 Answer 34 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 21 Nov 2014, 08:20 PM
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);

1 Answer, 1 is accepted

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

 
Tags
Diagram
Asked by
Don
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or