Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Collapsible Panel Extender

1 view
Skip to first unread message

David C

unread,
Dec 13, 2009, 10:49:32 AM12/13/09
to
I am using a CollapsiblePanelExtender to show/hide a FormView control inside
another FormView and it works great. Now I would like to know when that
Panel is collapsed in code but I do not know how to reference it in my page
code. Can someone tell me how to reference it and how to check its "state"?
Thanks.

David


Nathan Sokalski

unread,
Dec 13, 2009, 8:11:11 PM12/13/09
to
You can use the Collapsed property. This is a Boolean property, so it should
be pretty simple to use. Good Luck!
--
Nathan Sokalski
njsok...@hotmail.com
http://www.nathansokalski.com/

"David C" <dlc...@lifetimeinc.com> wrote in message
news:O%23pPgwAf...@TK2MSFTNGP04.phx.gbl...

msnews.microsoft.com

unread,
Dec 14, 2009, 5:32:26 PM12/14/09
to
My problem is that the page does not postback so I cannot check the
property. Do you know if there is some way in javascript to handle this?
Thanks.

David
"Nathan Sokalski" <njsok...@hotmail.com> wrote in message
news:uXYITpFf...@TK2MSFTNGP05.phx.gbl...

Nathan Sokalski

unread,
Dec 14, 2009, 6:18:14 PM12/14/09
to
The CollapsiblePanel Extender generates a hidden field with the ID
extenderid_ClientState. I have not yet looked into what it uses for the
values, but you can easily find this out by using something like:

window.alert(document.getElementById('extenderid_ClientState').value);

If you put this in a button, you can change the state as you normally would
and then click the button to see what the value is afterwards:

<asp:Button runat="server" Text="extenderid_ClientState"
OnClientClick="window.alert(document.getElementById('extenderid_ClientState').value);return
false;"/>

Hopefully this helps.

"msnews.microsoft.com" <dlc...@lifetimeinc.com> wrote in message
news:OMYGU2Qf...@TK2MSFTNGP02.phx.gbl...

0 new messages