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

Contextmenu open on right click

7 Answers 331 Views
Menu
This is a migrated thread and some comments may be shown as answers.
rupesh
Top achievements
Rank 1
rupesh asked on 22 Jan 2009, 01:09 PM
How do I open the RAD control context menu on right mouse button click in side a datagrid, So far I have gone throug the demo and samples but no where it has been mentioned about the right mouse button click event . I wonder if it really supports the right click event or not. Please guide.

7 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 23 Jan 2009, 07:35 AM
Hi rupesh,

Siverlight 2 do not support RightMouseButtonDown. There is no right mouse button support.
However you can open the context menu on right click if you enable windowless property on the silverlight plug-in. Please keep in mind that this way you will see both menus - default silverlight context menu and RadContextMenu. Also while in windowless mode your application performance may suffer greatly.

I hope this helps. Let me know if you need more information.

Greetings,
Hristo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joshua Huang
Top achievements
Rank 1
answered on 22 Sep 2009, 09:20 PM
Hi,
I am having problem with the mouse right click with the rad context menu control as well. I am using Silverlight 3 and all other events work fine such as mouse over, mouse left button click. Just the mouse right click not working even for windowless. Please help.

thanks!
0
Valeri Hristov
Telerik team
answered on 23 Sep 2009, 12:57 PM
Hello Joshua,

Our right-click extensions are not supported on Safari - this could be the reason for the problem - in order to be absolutely cross-browser, we recommend using Ctrl+LeftClick or similar combination to display the context menu (this could be set using the EventName and ModifierKey properties on RadContextMenu). If changing the browser does not help, please, open a new support ticket and send us a simple application that could be used to observe the problem.

Best wishes,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Joshua Huang
Top achievements
Rank 1
answered on 23 Sep 2009, 01:46 PM
Hi Valeri,
Thanks for your response. Actually I am testing on both Microsoft Internet Explorer and Google Chrome with no luck. The interesting thing is if the mouse right click works fine in Telerik's Sample solution. It doesn't work in the same solution if I create my own page or control. But if and only if I clone an existing example page (copy the xmal file and the code file and rename them), the context menu works fine as well for right click. Did Telerik do something in script when open their Example page to display the context menu for mouse right click event? You know by default if you right click anywhere on the silverlight page, it only shows "Silverlight" and/or "Remove this application" menu. Maybe I need to override this in order to show Telerik's context menu in mouse right click event? If so, how? Please advise.
0
Valeri Hristov
Telerik team
answered on 23 Sep 2009, 01:53 PM
Hi Joshua,

I suppose that the Silverlight plug-in in your application is not correctly set in windowless mode then. Could you please, check the following help article and see if you completed the instructions regarding the windowless mode?
http://www.telerik.com/help/silverlight/radhtmlplaceholder-getting-started.html

In our demo application we modified the default.aspx according the instructions above - added <param name="windowless" value="true" /> inside the Silverlight <object> element.

Best wishes,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Denis Vuyka
Top achievements
Rank 1
answered on 30 Oct 2009, 03:08 PM
When I make my application enter full screen mode the context menu suddenly stops working.

 

Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen;

When leaving the full screen mode the context menu start behaving as expected.
How can this problem be resolved?

 

0
Valeri Hristov
Telerik team
answered on 02 Nov 2009, 08:40 AM
Hello Denis,

The right click event is not available in Full Screen mode due the security restrictions of the Silverlight plug-in.

Greetings,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
rupesh
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Joshua Huang
Top achievements
Rank 1
Valeri Hristov
Telerik team
Denis Vuyka
Top achievements
Rank 1
Share this question
or