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
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
4 Answers, 1 is accepted
0
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
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 >>
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 >>
0
Egemen
Top achievements
Rank 1
answered on 06 Sep 2013, 10:14 AM
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
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
0
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
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 >>
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 >>
0
Egemen
Top achievements
Rank 1
answered on 27 Sep 2013, 03:21 PM
Hi,
You can tell me if you recommend MouseEnter event ?
You can tell me if you recommend MouseEnter event ?