PanelBar with single item does not collapse

2 posts, 0 answers
  1. Mickael
    Mickael avatar
    24 posts
    Member since:
    Oct 2014

    Posted 07 Oct 2014 Link to this post

    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 ?

  2. Mickael
    Mickael avatar
    24 posts
    Member since:
    Oct 2014

    Posted 07 Oct 2014 in reply to Mickael Link to this post

    nvm, found the solution.

    I needed to set the ExpandMode to MultipleExpandedItems
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top