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

[Solved] Menu with Sub menu

3 Answers 375 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jols
Top achievements
Rank 2
Jols asked on 02 Jun 2009, 05:21 AM
hello to all,

               i would like ask help to you all guys who knows very about the menu control, here's my question i have a menu here and 2 main items which namely Product and Department ..now what should i do to have a submenu under the product without affecting the department during design.  here's my figure

Department
Product      ---> Milk --> (undermilk we have) Nedo
                                                                      Bearbrand
                                                                      and so on..(when the user click this submilk item it will redirect to other page)

how can i do that..please help

sample codes is highly appreciated

thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jun 2009, 06:19 AM
Hi Jols,

You can set the NavigateUrl property to specify the URL to link to when the item is clicked.

[aspx]
 
<telerik:radmenu id="RadMenu1" runat="server" flow="Vertical"
    <Items> 
        <telerik:RadMenuItem runat="server" Text="Department"
            <Items> 
                <telerik:RadMenuItem runat="server" Text="Milk"
                <Items> 
                    <telerik:RadMenuItem runat="server" Text="Nedo" NavigateUrl="http://www.google.com"></telerik:RadMenuItem> 
                    <telerik:RadMenuItem runat="server" Text="Bearbrand" NavigateUrl="http://www.telerik.com"></telerik:RadMenuItem> 
                </Items> 
                </telerik:RadMenuItem> 
            </Items> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem runat="server" Text="Product"></telerik:RadMenuItem> 
    </Items> 
</telerik:radmenu> 
Checkout the following links.
Getting Started
RadMenu Item Builder

Thanks,
Shinu.
0
Jols
Top achievements
Rank 2
answered on 02 Jun 2009, 08:11 AM
Sir thank you so much for the reply..one question again how about on RadPanelBar that solutions could be made this control? please help..
0
Shinu
Top achievements
Rank 2
answered on 04 Jun 2009, 05:15 AM
Hi Jols,

I guess you want to implement the same using RadPanelBar control. If so, please go through the following code.

ASPX:
 
<telerik:RadPanelBar ID="RadPanelBar1" runat="server"
    <Items> 
        <telerik:RadPanelItem runat="server" Text="Department"
        </telerik:RadPanelItem> 
        <telerik:RadPanelItem runat="server" Text="Product"
            <Items> 
                <telerik:RadPanelItem runat="server" Text="Milk"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Nedo" NavigateUrl="http://www.google.com" ></telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="Bearbrand" NavigateUrl="http://www.telerik.com" ></telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 
Also checkout the folowing links which might help:
Getting Started
RadPanelBar Item Builder

-Shinu.
Tags
Menu
Asked by
Jols
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Jols
Top achievements
Rank 2
Share this question
or