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

DiagramShape without Connectors throw exception

1 Answer 30 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
YB
Top achievements
Rank 1
YB asked on 14 Jan 2014, 07:12 AM
Hello,
Here is  a  DiagramShape without connectors:
 I would draw a line on this DiagramShape;
then ,i used this :" this.diagram.ActiveTool = MouseTool.ConnectorTool;"
here throw a exception: The Shape has no connectors defind !

How can I solve this problem so that  I can draw a line on the Shape ?

Thank you !

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 16 Jan 2014, 09:35 AM
Hi,

I am not sure about your custom scenario, but if you have removed the connectors of the shapes, it is expected that an exception will be thrown. You need to have in mind that the ConnectorTool creates connections between two points or shapes of the diagram. Since there are no connectors on the shapes, clicking on any RadDiagramShape control throws exception.

If you elaborate more on your scenario we will be able to suggest approach, achieving your requirements in another way. Sending us some clarifying pictures will be great. Could you please specify, what lines you need to draw? Can't you use the drawing tools of the diagram?

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
YB
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or