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

RadPanelBar item not expanding when I set Expand property to true

1 Answer 106 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Hein
Top achievements
Rank 1
Hein asked on 27 Nov 2014, 08:23 AM
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.        }

1 Answer, 1 is accepted

Sort by
0
Hein
Top achievements
Rank 1
answered on 27 Nov 2014, 08:59 AM
I have solved this issue. Turns out my update panel was in the wrong position.

Thanks
Tags
PanelBar
Asked by
Hein
Top achievements
Rank 1
Answers by
Hein
Top achievements
Rank 1
Share this question
or