MouseRightButtonDown + ChildWindow

3 posts, 0 answers
  1. Marc
    Marc avatar
    11 posts
    Member since:
    Mar 2009

    Posted 22 Oct 2009 Link to this post


    The MouseRightButtonDown option for a contextmenu on a grid doesn't seem to work when the grid is on a Silverlight ChildWindow. The application is running on the Windows platform, and it works well when ChildWindows are not involved.

    Is there a solution for this problem? Thanks.

  2. Hristo
    Hristo avatar
    832 posts

    Posted 23 Oct 2009 Link to this post

    Hello Marc,

    As you probably know Silverlight doesn't offer support for RightClick. So we made some workaround to catch right click from the browser (this is why right click is working only in windowless mode). All our controls that are using Popups to show as RadWindow are registered in a special collection and when you click with the right button we are going through all opened popups to see if there is an element that is listening to right click.
    ChildWindow popup is not registered in our collection of opened popups so it is normal to not get notified. As a workaround I can suggest you to use RadWindow.

    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.
  3. Marc
    Marc avatar
    11 posts
    Member since:
    Mar 2009

    Posted 23 Oct 2009 Link to this post

    It should be possible to switch to RadWindow, but some forms are giving me a "Value does not fall within the expected range.". It basically happens because I'm trying to load a usercontrol containing a GridView into the RadWindow at runtime.

    Ctor of RadWindow:  LayoutRoot.Children.Add(viewToLoad); 

    UPDATE => Issue is solved. :-)
Back to Top