views:

20

answers:

1

I have a page that is being hosted in a window. The page has an ultragrid in which there is a context menu. When the context menu is opened, and the window is minimised using windows+m, the window gets minimized but the context menu is not getting minimized.

The window gets minimised to the taskbar but the context menu is still visible.

Can someone please help me out?

A: 

The context menu is a floating element, it's not part of the window. In my view, it makes sense that it is still visible.

What I would recommend is to detect the window being minimized and automatically get rid of it if it exists... Using a StateChanged event on Window.

keyle
How do i do that...i mean hw do i minimise the context menu using the window state changed event....
This might work http://www.devx.com/tips/Tip/30139
keyle