View Full Version : close grid column menu by api
30 Aug 2010, 10:00 AM
it is possible to pop up the column menu and then use tab to sign out of an application. this leaves the column menu open for editing even though user logged out of his session.
How do I close the the column menu programmatically when the user logs out?
30 Aug 2010, 10:12 AM
This is a little bit more complicated.
There are two solutions:
1) Listen to the Events.HeaderContextMenu event of the grid and safe a reference to this menu in your application, so you can close it manually.
2) As this can happen with any menu, you should use this approach.
You can use the ComponentManager class for this:
This returns a list of all currently attached menus, and you can hide them all.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.