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

ComboBox's in Menu Templates Problem

4 Answers 103 Views
Menu
This is a migrated thread and some comments may be shown as answers.
ADe
Top achievements
Rank 1
ADe asked on 25 Jul 2008, 11:29 AM
I have an area in my toolbar that has a menu in it. When the user hovers over the menu I wanted an area to appear allowing them to configure some options.

I created a template for the menu subitem and placed some RadComboBox's on it.

The problem is that if the user clicks one of the combo boxes and begins to scroll down the mouse is technically outside the bounds of the menu item so the template disappears leaving just combobox content displaying.

Is there a way to make the menuitem sticky somehow or is there a better way to acheive my goal?

4 Answers, 1 is accepted

Sort by
0
ADe
Top achievements
Rank 1
answered on 25 Jul 2008, 12:25 PM
Thanks, i'll have a look into that.

The reason I want this is because the site i'm making has a context i..e. the user gets the same controls but they do different things depending on the context they are in.

I wanted an easy and sexy way to change the context and though a drop down form in the toolbar at the top would be really nice.

EDIT: You're a genious, that works great :).. In case anyone else needs to do this here is the javascript,

var radMenuContext_CanClose = true;  
function radMenuContext_OnClientItemClosing(sender, args)  
{  
    args.set_cancel(!radMenuContext_CanClose);  
}  
 
function radComboBoxLAs_OnClientDropDownOpening(sender, args)  
{  
    radMenuContext_CanClose = false;  
}  
 
function radComboBoxLAs_OnClientDropDownClosing(sender, args)  
{  
    radMenuContext_CanClose = true;  
}  
 
function radComboBoxSites_OnClientDropDownOpening(sender, args)  
{  
    radMenuContext_CanClose = false;  
}  
 
function radComboBoxSites_OnClientDropDownClosing(sender, args)  
{  
    radMenuContext_CanClose = true;  
0
Thad
Top achievements
Rank 2
answered on 07 Jun 2011, 03:12 PM
ADe,

Thanks for posting your code.  This is still a viable solution three years later!  May others begin posting the code that fixes their problems, too!

Thad
0
Tom
Top achievements
Rank 1
answered on 21 Nov 2012, 04:34 PM
Awesome! Thanks for the post.
Tags
Menu
Asked by
ADe
Top achievements
Rank 1
Answers by
Blaize
Top achievements
Rank 1
ADe
Top achievements
Rank 1
Thad
Top achievements
Rank 2
Tom
Top achievements
Rank 1
Share this question
or