This is a migrated thread and some comments may be shown as answers.

Keeping the RadPanelBar fully expanded

2 Answers 73 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ruchit
Top achievements
Rank 1
Ruchit asked on 19 Mar 2011, 07:34 PM
Hello,

I am working on an application wherein I want the RADPanelBar to be fully expanded 
when the page loads the first time. After that user should have the ability to keep
them expanded or to collapse them.

In my case, only the first tag is expanded and others are collapsed when the page loads. 

Kindly waiting for the reply.


Thanks and Best Regards,
Ruchit 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Mar 2011, 06:41 AM
Hi Ruchit,


You could set the Expanded property of root RadPanelItems to "True" in order to make those expanded initially. Also you need to set the ExpandMode proprty as "MultipleExpandedItems".
 
ASPX:
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" ExpandMode="MultipleExpandedItems" >
    <Items>
        <telerik:RadPanelItem Text="P1" Expanded="true">
            <Items>
                .  .  .
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem Text="P2" Expanded="true">
            <Items>
                 .  .  .
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem Text="P3" Expanded="true">
            <Items>
                .  .  .
            </Items>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>



-Shinu.
0
Ruchit
Top achievements
Rank 1
answered on 21 Mar 2011, 06:56 AM
That worked perfectly for me.

Thanks Shinu.
Tags
PanelBar
Asked by
Ruchit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ruchit
Top achievements
Rank 1
Share this question
or