RadPanelBar item not expanding when I set Expand property to true

2 posts, 0 answers
  1. Hein
    Hein avatar
    2 posts
    Member since:
    Nov 2014

    Posted 27 Nov 2014 Link to this post

    I am trying to programmatically expand a radpanelitem, but it does not seem to be working. I can expand it via the UI by clicking, but I would like to expand it from the code behind.

    01.<telerik:RadPanelBar ID="rpbHeader" runat="server" Skin="Outlook" Width="100%" ExpandMode="FullExpandedItem" OnPreRender="rpbHeader_PreRender">
    02.        <Items>
    03.            <telerik:RadPanelItem ID="rpi_Header" runat="server" Owner="rpbHeader" Text="Statement Details">
    04.                <ContentTemplate>
    05.                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
    06.                        <ContentTemplate>
    07.                            <div style="padding-top: 8px;">
    08.                            </div>
    09.                            <div class="RFSHeader">
    10.                                <uc2:ucStatementHeader ID="ucStatementHeader" runat="server" />
    11.                            </div>
    12.                        </ContentTemplate>
    13.                    </asp:UpdatePanel>
    14.                </ContentTemplate>
    15.            </telerik:RadPanelItem>
    16.        </Items>
    17.    </telerik:RadPanelBar>
    1.protected void Page_PreRender(object sender, EventArgs e)
    2.        {
    3.            if (sessionInfo.SessionObject().FinData.BankStatement != null)
    4.            {
    5.                rpi_Header.Expanded = true;
    6.            }
    7.        }
  2. Hein
    Hein avatar
    2 posts
    Member since:
    Nov 2014

    Posted 27 Nov 2014 Link to this post

    I have solved this issue. Turns out my update panel was in the wrong position.

    Thanks
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top