Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Panelbar > Expand / collapse panel bar with header
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 Expand / collapse panel bar with header

Feed from this thread
  • komathi priya avatar

    Posted on Mar 9, 2011 (permalink)

    hi,

    i want to expand and collapse my panel bar by clicking  on the header of the panel bar, 
    now only expand is happening if i click on the header.  if i click other item then the previous item collapse
    but i want to collapse even if i click on the same item's header.

    <telerik:RadPanelBar ID="pnlHealthDetails" Width="100%" TabIndex="14" Skin="Vista"
                                runat="server" ExpandMode="SingleExpandedItem" OnClientItemClicked="collapseRoots">
                                <Items>
                                    <telerik:RadPanelItem Text="General" Expanded="true" Selected="true" runat="server">
                                        <Items>
                                            <telerik:RadPanelItem Value="General">
                                                <ItemTemplate>
                                                      //My design                                                    
                                                </ItemTemplate>
                                            </telerik:RadPanelItem>
                                        </Items>
                                    </telerik:RadPanelItem>
                                    <telerik:RadPanelItem Text="Symptom description" Visible="false" Enabled="false">
                                        <Items>
                                            <telerik:RadPanelItem Value="SymptomDescription">
                                                <ItemTemplate>
                                                    //My design 
                                                </ItemTemplate>
                                            </telerik:RadPanelItem>
                                        </Items>
                                    </telerik:RadPanelItem>


    how can i achieve the thing i need??


    regards 
    priya

  • Posted on Mar 10, 2011 (permalink)

    Hello,


    Set the ExpandMode to "MultipleExpandedItems" and see whether it helps.


    -Shinu.

Back to Top

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