ComboBox's in Menu Templates Problem

5 posts, 0 answers
  1. ADe
    ADe avatar
    42 posts
    Member since:
    Jul 2008

    Posted 25 Jul 2008 Link to this post

    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?
  2. UI for ASP.NET Ajax is Ready for VS 2017
  3. ADe
    ADe avatar
    42 posts
    Member since:
    Jul 2008

    Posted 25 Jul 2008 Link to this post

    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;  
  4. Thad
    Thad avatar
    106 posts
    Member since:
    Sep 2010

    Posted 07 Jun 2011 Link to this post

    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
  5. Tom
    Tom avatar
    44 posts
    Member since:
    Oct 2010

    Posted 21 Nov 2012 Link to this post

    Awesome! Thanks for the post.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017