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

Multi Level Toolbar

6 Answers 129 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Michael Davis
Top achievements
Rank 1
Michael Davis asked on 12 Mar 2010, 07:20 PM
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

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Mar 2010, 08:26 AM

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.

0
Michael Davis
Top achievements
Rank 1
answered on 16 Mar 2010, 04:19 PM
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
0
Yana
Telerik team
answered on 17 Mar 2010, 09:31 AM
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.
0
Michael Davis
Top achievements
Rank 1
answered on 17 Mar 2010, 07:59 PM
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
0
Yana
Telerik team
answered on 18 Mar 2010, 01:49 PM
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.
0
Michael Davis
Top achievements
Rank 1
answered on 18 Mar 2010, 04:19 PM
Thanks Yana, you've been a great help!
Tags
ToolBar
Asked by
Michael Davis
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Michael Davis
Top achievements
Rank 1
Yana
Telerik team
Share this question
or