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

MouseRightButtonDown + ChildWindow

2 Answers 90 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 22 Oct 2009, 12:05 PM
Hi,

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.

Marc

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 23 Oct 2009, 07:20 AM
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.

Regards,
Hristo
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
Marc
Top achievements
Rank 1
answered on 23 Oct 2009, 09:55 AM
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. :-)
Tags
Menu
Asked by
Marc
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Marc
Top achievements
Rank 1
Share this question
or