Problem radcontextmenu with custom diagram shape

5 posts, 0 answers
  1. Egemen
    Egemen avatar
    34 posts
    Member since:
    Apr 2012

    Posted 09 Jul 2013 Link to this post

    Hi,

    I have got a custom templated control (an custom control which inherits from RadDiagramShapeBase). And radcontextmenu in this control. It works fine with right click, when i select the custom shape on diagram . But when i set EventName="MouseLeftButtonDown", the context menu works fine but the customshape control doesn't works. I cannot drag drop the customshape...
    What have i to do?

    Regards
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 10 Jul 2013 Link to this post

    Hello Egemen,

    When you open RadContextMenu on MouseLeftButtonDown, it is handling the event and the drag-drop logic of the diagram is unable to start. You can try using MouseLeftButtonUp event, but in this case when you drop the element, RadContextMenu will be opened.

    Hopefully this helps. Feel free to contact us in case you have any other problems or concerns.

    Regards,
    Rosen Vladimirov
    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. Egemen
    Egemen avatar
    34 posts
    Member since:
    Apr 2012

    Posted 06 Sep 2013 Link to this post

    Hi,

    I have tried to use MouseLeftButtonUp  event after the installation Q2 2013 SP1. But it doesn't work. The context menu does not appear. And when i replace the event by MouseLeftButtonDown, i can not drag my custom shape...

    Thank you for your help
  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 11 Sep 2013 Link to this post

    Hello Egemen,

    I've tested the project we've previously worked on and it is working in the same way with our latest release. Of course we do not recommend opening RadContextMenu on MouseLeftButtonDown when there is another logic that has to be executed on MouseLeftButtonUp. The logic of the two events should be similar, it shouldn't"t execute two different ui operations. We strongly recommend you to differentiate the two logics in the different events, for example open RadContextMenu on right mouse button events.

    Hopefully this helps.

    Regards,
    Rosen Vladimirov
    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 >>
  6. Egemen
    Egemen avatar
    34 posts
    Member since:
    Apr 2012

    Posted 27 Sep 2013 Link to this post

    Hi,

    You can tell me if you recommend MouseEnter event ?

Back to Top
DevCraft banner