Contextmenu open on right click

8 posts, 0 answers
  1. rupesh
    rupesh avatar
    1 posts
    Member since:
    Dec 2008

    Posted 22 Jan 2009 Link to this post

    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.
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 23 Jan 2009 Link to this post

    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.
  3. DevCraft banner
  4. Joshua Huang
    Joshua Huang avatar
    5 posts
    Member since:
    Jul 2009

    Posted 22 Sep 2009 Link to this post

    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!
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 23 Sep 2009 Link to this post

    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.
  6. Joshua Huang
    Joshua Huang avatar
    5 posts
    Member since:
    Jul 2009

    Posted 23 Sep 2009 Link to this post

    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.
  7. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 23 Sep 2009 Link to this post

    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.
  8. Denis Vuyka
    Denis Vuyka avatar
    39 posts
    Member since:
    Oct 2009

    Posted 30 Oct 2009 Link to this post

    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?

     

  9. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 02 Nov 2009 Link to this post

    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.
Back to Top
DevCraft banner