Multi Level Toolbar

7 posts, 0 answers
  1. Michael Davis
    Michael Davis avatar
    9 posts
    Member since:
    Feb 2010

    Posted 12 Mar 2010 Link to this post

    Hi,
    I was wondering if RadToolBar supports more than one level drop down menus? If not, is there a way to make RadMenu dropdown menu items only expand if you click on them rather than hover?
    Thanks
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Mar 2010 Link to this post

    Hello Michael Davis,

    I am not sure about adding multi-level ToolBar for RadToolBarDropDown. And by default, the ToolBarDropDown expands only when cliking on it, not when hovering. If you want to expand/ show dropdown when hovering it, then try the following client side code.

    aspx:

     
    <telerik:RadToolBar ID="RadToolBar1" Style="z-index: 2000 !important;" runat="server"  
        OnClientMouseOver="OnClientMouseOver">  
        <Items>  
            <telerik:RadToolBarDropDown Text="Select">  
                <Buttons>  
                    <telerik:RadToolBarButton Text="Item1">                     
                    </telerik:RadToolBarButton>  
                </Buttons>  
            </telerik:RadToolBarDropDown>  
        </Items>  
    </telerik:RadToolBar> 

    client side code:

     
    <script type="text/javascript">  
        function OnClientMouseOver(sender, args) {  
            if (args.get_item().get_text() == "Select") {  
                args.get_item().showDropDown();  
            }  
        }  
    </script> 

    Feel free to share the comments... :)

    Shinu.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael Davis
    Michael Davis avatar
    9 posts
    Member since:
    Feb 2010

    Posted 16 Mar 2010 Link to this post

    Thanks Shinu.
    Actually I was wondering if it was possible to create the click-to-expand for RadMenu if RadToolBar is unable to do more than one level. Basically I want to create a ToolBar drop down menu with more than one level, either with RadToolBar, or by making RadMenu behave like RadToolBar.
    Thanks again,
    Mike
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Mar 2010 Link to this post

    Hello Mike,

    You can use RadMenu with its ClickToOpen property enabled, here you can try this option.

    Greetings,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Michael Davis
    Michael Davis avatar
    9 posts
    Member since:
    Feb 2010

    Posted 17 Mar 2010 Link to this post

    Thanks Yana. That's exactly what I wanted. One problem that I'm running into on my project as well as the demo you suggested and this demo, is that when one menu item is clicked and infocus, if you hover over the rest of the menu items they expand without being clicked. Is there a fix for this?
    Thanks
  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 Mar 2010 Link to this post

    Hi Michael Davis,

    I'm afraid that this behavior is by design and cannot be changed easily.

    Regards,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Michael Davis
    Michael Davis avatar
    9 posts
    Member since:
    Feb 2010

    Posted 18 Mar 2010 Link to this post

    Thanks Yana, you've been a great help!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017