DiagramShape without Connectors throw exception

2 posts, 0 answers
  1. YB
    YB avatar
    3 posts
    Member since:
    Jan 2014

    Posted 14 Jan 2014 Link to this post

    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 !

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 16 Jan 2014 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top