PanelBar - Hierarchical PanelBar

  • Corporate
    • About us
      • News
      • Team
    • Careers
  • Services
    • Products
    • Solutions
    • Certifications
  • Work
    • Clients
    • Testimonials
    • FAQ
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

You can create a hierarchical panelbar by defining the structure with the design-time builder. You can also bind the control to a hierarchical datasource or build its structure using the server-side API.

Please review the code sections for more details.

  • DefaultCS.aspx
<%@ Page Language="c#"  %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!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">
    <title>Telerik ASP.NET Example</title>
</head>

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
     <div class="demo-container size-thin">
        <telerik:RadPanelBar RenderMode="Lightweight" runat="server" ID="RadPanelBar1" Width="100%">
            <Items>
                <telerik:RadPanelItem Expanded="True" Text="Corporate">
                    <Items>
                        <telerik:RadPanelItem Expanded="True" Text="About us">
                            <Items>
                                <telerik:RadPanelItem Text="News" />
                                <telerik:RadPanelItem Text="Team" />
                            </Items>
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem Text="Careers" />
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Services">
                    <Items>
                        <telerik:RadPanelItem Text="Products" />
                        <telerik:RadPanelItem Text="Solutions" />
                        <telerik:RadPanelItem Text="Certifications" />
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Work">
                    <Items>
                        <telerik:RadPanelItem Text="Clients" />
                        <telerik:RadPanelItem Text="Testimonials" />
                        <telerik:RadPanelItem Text="FAQ" />
                    </Items>
                </telerik:RadPanelItem>
            </Items>
            <ExpandAnimation Type="None" />
        </telerik:RadPanelBar>
    </div>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?