New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Sliding PanelBar

  • UI for ASP.NET AJAX
    • RadComboBox
    • RadMenu
    • RadTabStrip
    • RadPanelBar
    • RadTreeView
    • RadToolBar
    • RadChart
  • UI for WinForms
    • RadComboBox
    • RadDock
    • RadGridView
    • RadTabStrip
  • Other projects
    • SiteFinity
    • Reporting
  • UI for ASP.NET AJAX
    • RadComboBox
    • RadMenu
    • RadTabStrip
    • RadPanelBar
    • RadTreeView
    • RadToolBar
    • RadChart
  • UI for WinForms
    • RadComboBox
    • RadDock
    • RadGridView
    • RadTabStrip
  • Other projects
    • SiteFinity
    • Reporting

With RadPanelBar you can define side bars just like in Visual Studio.NET. To accomplish this JavaScript functions and CSS styles should be used as shown in this example. 

  • DefaultCS.aspx
  • scripts.js
  • styles.css
<%@ Page Language="c#"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
      <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script src="scripts.js" type="text/javascript"></script>
        <script type="text/javascript">
            Sys.Application.add_load(function() {
                demo.leftPanel = $get('<%=RadPanelBar1.ClientID %>');
                demo.leftButton = document.getElementById("left-button");
                demo.rightPanel = $get('<%=RadPanelBar2.ClientID %>');
                demo.rightButton = document.getElementById("right-button");
                demo.initialize();
            });
        </script>
    </telerik:RadScriptBlock>
    <div class="demo-container size-wide">
            <div class="left-pane">
                <input type="image" id="left-button" class="button" src="images/Toolbox.gif" />
                <div class="sliding-pane">
                    <telerik:RadPanelBar RenderMode="Lightweight" runat="server" ID="RadPanelBar1" Height="250" Width="270px" ExpandMode="FullExpandedItem">
                        <Items>
                            <telerik:RadPanelItem Expanded="True" Text="UI for ASP.NET AJAX">
                                <Items>
                                    <telerik:RadPanelItem Text="RadComboBox" ImageUrl="images/ComboboxPr.gif" />
                                    <telerik:RadPanelItem Text="RadMenu" ImageUrl="images/MenuPr.gif" />
                                    <telerik:RadPanelItem Text="RadTabStrip" ImageUrl="images/TabstripPr.gif" />
                                    <telerik:RadPanelItem Text="RadPanelBar" ImageUrl="images/PanelBarPr.gif" />
                                    <telerik:RadPanelItem Text="RadTreeView" ImageUrl="images/TreeviewPr.gif" />
                                    <telerik:RadPanelItem Text="RadToolBar" ImageUrl="images/ToolbarPr.gif" />
                                    <telerik:RadPanelItem Text="RadChart" ImageUrl="images/ChartPr.gif" />
                                </Items>
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="UI for WinForms">
                                <Items>
                                    <telerik:RadPanelItem Text="RadComboBox" ImageUrl="images/Combobox_Win.gif" />
                                    <telerik:RadPanelItem Text="RadDock" ImageUrl="images/Dock_Win.gif" />
                                    <telerik:RadPanelItem Text="RadGridView" ImageUrl="images/RadGrid.bmp" />
                                    <telerik:RadPanelItem Text="RadTabStrip" ImageUrl="images/Tabstrip_Win.gif" />
                                </Items>
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Other projects">
                                <Items>
                                    <telerik:RadPanelItem Text="SiteFinity" ImageUrl="images/st.gif" />
                                    <telerik:RadPanelItem Text="Reporting" ImageUrl="images/report.gif" />
                                </Items>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelBar>
                </div>
            </div>

            <div class="right-pane">
                <input type="image" id="right-button" class="button" src="images/Toolbox.gif" />
                <div class="sliding-pane">
                    <telerik:RadPanelBar RenderMode="Lightweight" runat="server" ID="RadPanelBar2" Height="250" Width="270px" ExpandMode="FullExpandedItem">
                        <Items>
                            <telerik:RadPanelItem Expanded="True" Text="UI for ASP.NET AJAX">
                                <Items>
                                    <telerik:RadPanelItem Text="RadComboBox" ImageUrl="images/ComboboxPr.gif" />
                                    <telerik:RadPanelItem Text="RadMenu" ImageUrl="images/MenuPr.gif" />
                                    <telerik:RadPanelItem Text="RadTabStrip" ImageUrl="images/TabstripPr.gif" />
                                    <telerik:RadPanelItem Text="RadPanelBar" ImageUrl="images/PanelBarPr.gif" />
                                    <telerik:RadPanelItem Text="RadTreeView" ImageUrl="images/TreeviewPr.gif" />
                                    <telerik:RadPanelItem Text="RadToolBar" ImageUrl="images/ToolbarPr.gif" />
                                    <telerik:RadPanelItem Text="RadChart" ImageUrl="images/ChartPr.gif" />
                                </Items>
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="UI for WinForms">
                                <Items>
                                    <telerik:RadPanelItem Text="RadComboBox" ImageUrl="images/Combobox_Win.gif" />
                                    <telerik:RadPanelItem Text="RadDock" ImageUrl="images/Dock_Win.gif" />
                                    <telerik:RadPanelItem Text="RadGridView" ImageUrl="images/RadGrid.bmp" />
                                    <telerik:RadPanelItem Text="RadTabStrip" ImageUrl="images/Tabstrip_Win.gif" />
                                </Items>
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Other projects">
                                <Items>
                                    <telerik:RadPanelItem Text="SiteFinity" ImageUrl="images/st.gif" />
                                    <telerik:RadPanelItem Text="Reporting" ImageUrl="images/report.gif" />
                                </Items>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelBar>
                </div>
            </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance