Thursday, September 13, 2007

CollapsiblePanel expand / collapse

From javascript

$find(BehaviorID).expandPanel();
$find(BehaviorID).collapsePanel();

in Code Behind


cpeLeft.Collapsed = false;
cpeSide.Collapsed = true;
cpeLeft.ClientState = "false";
cpeSide.ClientState = "true";

1 comment:

Tony Wright said...

I found that I no longer needed to pass the BehaviorID as arguments. I believe you can now just pass the client ID of the collapsible panel. This is convenient when you have multiple collapsible panels on the one page.