How to control PopupMenu height, placement, and scrolling?
New DiscussionHello,
I am using an UltraWebMenu with WebMenuTarget=”PopupMenu”. This menu is used as a context menu for an UltraWebGrid, to allow the user to select or deselect the columns that are visible on the grid. When the number of items in the menu gets large (i.e. about 20 items or so), and I am scrolled to the top of the page, the menu appears only partly on screen. I have to scroll down the page to see the entire menu. Unfortunately, if I move the mouse to the browser scroll bar, the menu disappears. I have to resort to keeping the mouse on the menu and scrolling down with my mouse wheel, which not all users will have.
Is there a way to programmatically set the maximum height of the menu so that if it exceeds that height, the menu itself will allow scrolling? I have tried setting the UltraWebMenu.Height property on the server during initialization but this seems to have no effect.
Failing that, is there a way to programmatically position the location of the menu so that it fits entirely on the screen?
Setting the max height of the menu would be the best solution, since the user might have their browser set to a size which is too small for the entire menu no matter what.
Thanks for any help.