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

PanelBar with single item does not collapse

1 Answer 62 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Mickael
Top achievements
Rank 1
Mickael asked on 07 Oct 2014, 12:28 PM
Hi,

I am trying to use a PanelBar from one of the samples.
I need just one panel to make it a collapsible panel for advanced options.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" >
    <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="SingleExpandedItem" Width="100%">
        <Items>
            <telerik:RadPanelItem Expanded="false" Text="Advanced Settings" runat="server">
                <Items>
                    <telerik:RadPanelItem Value="AccountInformation" runat="server">
                        <ItemTemplate>
[I have a table here]
                        </ItemTemplate>
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
</telerik:RadAjaxPanel>

I can click on the panelBar to extend it, but it does not want to collapse.

Is the PanelBar the correct control for this ?
Or am I doing something wrong ?

1 Answer, 1 is accepted

Sort by
0
Mickael
Top achievements
Rank 1
answered on 07 Oct 2014, 12:44 PM
nvm, found the solution.

I needed to set the ExpandMode to MultipleExpandedItems
Tags
PanelBar
Asked by
Mickael
Top achievements
Rank 1
Answers by
Mickael
Top achievements
Rank 1
Share this question
or