Collapsing/Expanding CollapsiblePanelExtender Programatically
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 :).