See Technical Demos of the New Features in the DevCraft R1 2017 Release Webinar. Save Your Seat!

PanelBar - Expand Behavior

  • ASP.NET controls
    • RadMenu
    • RadTabStrip
    • RadPanelBar
    • RadTreeView
  • WinForms controls
    • RadMenustrip
    • RadTabStrip
    • RadToolStrip
  • Other projects
    • SiteFinity
    • Reporting
    • RadAjax

Demo Configurator

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

You can control the way panel items expand via the ExpandMode property of RadPanelBar. The supported modes are:

  • MultipleExpandedItems: More than one item can be expanded at a time.
  • SingleExpandedItem: Only one item can be expanded at a time. Expanding an item collapses the previously expanded one.
  • FullExpandedItem: Only one item can be expanded at a time. The expanded area occupies the entire height of the RadPanelbar
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="PanelBar.Examples.Functionality.PanelbarBehavior.DefaultCS" %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>

    <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%">
                <telerik:RadPanelItem Expanded="True" Text="ASP.NET controls">
                        <telerik:RadPanelItem Text="RadMenu" />
                        <telerik:RadPanelItem Text="RadTabStrip" />
                        <telerik:RadPanelItem Text="RadPanelBar" />
                        <telerik:RadPanelItem Text="RadTreeView" />
                <telerik:RadPanelItem Text="WinForms controls">
                        <telerik:RadPanelItem Text="RadMenustrip" />
                        <telerik:RadPanelItem Text="RadTabStrip" />
                        <telerik:RadPanelItem Text="RadToolStrip" />
                <telerik:RadPanelItem Text="Other projects">
                        <telerik:RadPanelItem Text="SiteFinity" />
                        <telerik:RadPanelItem Text="Reporting" />
                        <telerik:RadPanelItem Text="RadAjax" />
    <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Title="Demo Configurator">
            <qsf:View Title="PanelBar expand mode">
                <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" CssClass="radio-list-h" RepeatLayout="OrderedList"
                    <asp:ListItem Value="MultipleExpandedItems" Selected="True">Multiple Expanded Items</asp:ListItem>
                    <asp:ListItem Value="SingleExpandedItem">Single Expanded Item</asp:ListItem>
                    <asp:ListItem Value="FullExpandedItem">Full Expanded Item</asp:ListItem>

Find Assistance

Help Us Improve

Was this example helpful?