PanelBar - Sliding PanelBar

Isolate this demo as a stand-alone application

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. 

<%@ 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>
    <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 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 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>

Find Assistance

Help Us Improve

Was this example helpful?