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.
}