Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

PanelBar / PanelBar And Menu


  • You can easily integrate RadPanelBar with RadMenu. This example shows one such approach. RadMenu is embedded in the ItemTemplate of the panel items.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>

    <%@ Page CodeFile="DefaultVB.aspx.vb" Language="vb" AutoEventWireup="true" Inherits="Telerik.Web.Examples.PanelBar.ApplicationScenarios.PanelbarAndMenu.DefaultVB" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1" />
            <style type="text/css">
            .RadPanelBar,
            .RadPanelBar .rpSlide,
         .RadPanelBar .rpGroup,
         .RadPanelBar .rpItem,
         .RadPanelBar .rpTemplate
            {
                overflow:visible !important;
            }
            
            div.RadPanelBar .rpLevel1 .rpItem
            {
                padding:0;
            }
            
            * html .RadPanelBar .RadMenu ul.rmRootGroup
            {
                zoom: 1;
            }
            
            div.RadMenu .rmRootGroup
            {
                border: 0;
            }
            
            div.RadMenu .rmLink
            {
                float: none;
            }
            
            
        </style>
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
            <telerik:RadScriptManager ID="ScriptManager" runat="server" />
            <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" />
            
            <telerik:RadPanelBar ID="RadPanelbar1" runat="server" Width="190px"
                ExpandAnimation-Type="none" CollapseAnimation-Type="none">
                <Items>
                    <telerik:RadPanelItem Text="My Favorites">
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Vertical" Width="100%">
                                        <Items>
                                            <telerik:RadMenuItem Text="Finance" Width="100%">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Stocks" />
                                                    <telerik:RadMenuItem Text="Bonds" />
                                                    <telerik:RadMenuItem Text="Mutual Funds">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="International Funds" />
                                                            <telerik:RadMenuItem Text="Stock Funds" />
                                                            <telerik:RadMenuItem Text="Personal Funds" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Insurance" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Real Estate">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Villas">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="France" />
                                                            <telerik:RadMenuItem Text="Spain" />
                                                            <telerik:RadMenuItem Text="Ireland" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Houses" />
                                                    <telerik:RadMenuItem Text="Apartments" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Leisure">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Sports" />
                                                    <telerik:RadMenuItem Text="Movies" />
                                                    <telerik:RadMenuItem Text="Clubs">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Babbles" />
                                                            <telerik:RadMenuItem Text="Space" />
                                                            <telerik:RadMenuItem Text="The Jumping Cat" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Family" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Internet">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Search Engines">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Google" />
                                                            <telerik:RadMenuItem Text="Yahoo!" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Portals" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Health">
                                                <Items>
                                                    <telerik:RadMenuItem Text="SPA" />
                                                    <telerik:RadMenuItem Text="Fitness" />
                                                    <telerik:RadMenuItem Text="Pharmacy" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                        </Items>
                                    </telerik:RadMenu>
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="My Office" Expanded="true">
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    <telerik:RadMenu ID="Radmenu2" runat="server" Flow="Vertical" Width="100%" >
                                        <Items>
                                            <telerik:RadMenuItem Text="Address Book" Width="100%">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Friends" />
                                                    <telerik:RadMenuItem Text="Partners" />
                                                    <telerik:RadMenuItem Text="Co-workers">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Finance" />
                                                            <telerik:RadMenuItem Text="Marketing" />
                                                            <telerik:RadMenuItem Text="Production" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Others" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Schedule">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Monthly Schedule">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="January" />
                                                            <telerik:RadMenuItem Text="February" />
                                                            <telerik:RadMenuItem Text="March" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Daily Schedule" />
                                                    <telerik:RadMenuItem Text="5 Year Plan" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Projects">
                                                <Items>
                                                    <telerik:RadMenuItem Text="2006 Budget" />
                                                    <telerik:RadMenuItem Text="Office Space" />
                                                    <telerik:RadMenuItem Text="Marketing">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Rebranding" />
                                                            <telerik:RadMenuItem Text="Product Roadmap" />
                                                            <telerik:RadMenuItem Text="Advertising" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Family" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="Fun">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Search Engines">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Google" />
                                                            <telerik:RadMenuItem Text="Yahoo!" />
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Portals" />
                                                </Items>
                                            </telerik:RadMenuItem>
                                        </Items>
                                    </telerik:RadMenu>
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelBar>
            <qsf:Footer ID="Footer1" runat="server" />
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451