Hello,
I have a webpanel that contains a bunch of fields for a user to fill out based on an answer to a question. if the answer is no, the webpanel stayes collapsed and disabled. However, if the answer is yes, I need the user to fill out the form. I have figured out how to enable and disable the webpanel based on the selection, but I want to go ahead and expand it for the user. How would I accomplish this with Javascript?
Thanks!
HI,
You can expand the panel and disable it on the client side by sing the setExpanded setEnabled methods.
Here is a help link to the WebPanel Client-Side Object
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.1/CLR3.5/html/WebPanel_Object_CSOM.html
adding a code snippet just in case someone else needs it.
var pnl = igpnl_getPanelById("wpClassifiedWork_wpSecurityForm");
pnl.setExpanded(true);