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

One panel bar item as a show/hide feature

1 Answer 160 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Samantha
Top achievements
Rank 1
Samantha asked on 11 Sep 2008, 11:30 AM
I have an area of my web page that I want to expand/collapse.  I would like to be able to have a panel bar that has one item, that I can expand and collapse.  Is this possible?  If not, is there a comparable control I could use instead?

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Sep 2008, 02:02 PM
Hello Samantha,

Yes this is possible. Just create a panelbar with one item which has one child item. The child item will be collapsed. If you need to add any child controls you should use the ItemTemplate of the innermost panel item.

<telerik:RadPanelBar runat="server" ID="RadPanelbar1">
    <Items>
             <telerik:RadPanelItem Text="Root ITem">
                     <Items>
                              <telerik:RadPanelItem>
                                   <ItemTemplate>
                                          <asp:TextBox runat="server" ID="TextBox1" />
                                   </ItemTemplate>
                              </telerik:RadPanelItem>
                      </Items>
             </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
PanelBar
Asked by
Samantha
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or