2 posts tagged “collapsiblepanelextender”
I ran into the problem of collapsing my CollapsiblePanelExtender programatically. This is a quick solution to that for those running into the same problem.
Here is the code:
this.cpeTest.ClientState = "true";
this.cpeTest.Collapsed = true;
And here is the control information:
<ajaxControlToolkit:CollapsiblePanelExtender
id="cpeTest"
runat="server"
TargetControlID="pnlTarget"
Collapsed="False"
ExpandControlID="divExpand"
CollapseControlID="divCollapse"
AutoCollapse="False"
ScrollContents="False"
TextLabelID="lblExpand"
CollapsedText="Expand"
ExpandedText="Collapse"
ExpandDirection="Vertical" />
I hope this helps :).
I noticed that when I used the CollapsiblePanelExtender, it had a tendancy to flicker once when the page loads. Here is my quick fix for that. All you have to do is add these properties to the panel's definition:
style="overflow:hidden" Height="0"
I hope this helps.