Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Panelbar > collapse panel bar
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered collapse panel bar

Feed from this thread
  • sabarishbabu Intermediate avatar

    Posted on Mar 9, 2011 (permalink)

    hi,

    how to collapse the panel bar by clicking on the header or the arrow in the right corner.
    now expanding only working.

    <telerik:RadPanelBar ID="pnlHealthDetails" Width="100%" TabIndex="14" Skin="Vista"
                                runat="server" ExpandMode="SingleExpandedItem"  >
                                <Items>
                                    <telerik:RadPanelItem Text="General" Expanded="true" Selected="true" runat="server">
                                        <Items>
                                            <telerik:RadPanelItem Value="General">
                                                <ItemTemplate>
    //My design stuff
                                                 </ItemTemplate>
                                            </telerik:RadPanelItem>
                                        </Items>
                                    </telerik:RadPanelItem>
                                    <telerik:RadPanelItem Text="General symptoms" Expanded="false">
                                        <Items>
                                            <telerik:RadPanelItem Value="GeneralSymptoms">
                                                <ItemTemplate>

    //My design stuff 
                                                </ItemTemplate>
                                            </telerik:RadPanelItem>
                                        </Items>
                                    </telerik:RadPanelItem>

    is there any coding need to chage to achive this??

  • Posted on Mar 10, 2011 (permalink)

    Hello,


    When ExpandMode is "SingleExpandedItem", only one item can be expanded at a time. By default, an expanded item can only be collapsed by expanding another item at the same level of the panel bar. (This is true even if another item is expanded because its PreventCollapse property has been set to True).

    To allow users to collapse items by clicking on them when ExpandMode is "SingleExpandedItem", set the AllowCollapseAllItems property to True.


    -Shinu

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Panelbar > collapse panel bar