You can write javascript to collapse/expand using Behavior ID
<script type="text/javascript">
function TogglePanels(flag) {
// Your Panel Behavior IDs here.
var panels = ["cpe1", "cpe2", "cpe3", "cpe4"];
for (var i = 0; i < panels.length; i++)
// true for open Panel
if (flag)
$find(panels[i])._doOpen();
// false for closing Panel
else
$find(panels[i])._doClose();
}
</script>
MyronCope
Participant
1656 Points
1345 Posts
programmatically collapse/expand a collapsiblePanelExtender
Oct 28, 2010 04:25 PM|LINK
using vb.net/asp.net 2005
I have a collapsiblePanelExtender that I need to programmatically expand and collapse on my page.
how do you do this?
thanks
MC
sansan
All-Star
53942 Points
8147 Posts
Re: programmatically collapse/expand a collapsiblePanelExtender
Oct 28, 2010 04:37 PM|LINK
You can write javascript to collapse/expand using Behavior ID
<script type="text/javascript"> function TogglePanels(flag) { // Your Panel Behavior IDs here. var panels = ["cpe1", "cpe2", "cpe3", "cpe4"]; for (var i = 0; i < panels.length; i++) // true for open Panel if (flag) $find(panels[i])._doOpen(); // false for closing Panel else $find(panels[i])._doClose(); } </script>MyronCope
Participant
1656 Points
1345 Posts
Re: programmatically collapse/expand a collapsiblePanelExtender
Oct 28, 2010 05:28 PM|LINK
hi, thanks but whats the server-side code for each, collapse and expand?
sansan
All-Star
53942 Points
8147 Posts
Re: programmatically collapse/expand a collapsiblePanelExtender
Oct 28, 2010 05:41 PM|LINK
You can Set Collapsed property to true to collapse panel and false to expand the panel
YourCollapsiblePanelID.Collapsed = false;