I have a web panel on a page, it contains a web grid and that's about it. We are attempting to create a printer friendly version of the page and so want to remove the ability to collapse the web panel, but want to leave the header on the panel visible. Is there some way I can accomplish this?
I have tried expanding the panel then disabling it, but then on the page it's all greyed out and looks funny. Ideally, I'd like to be able to disable the expand/collapse button on the header and leave everything else as-is.
Any help would be greatly appreciated.
HI ,
Wire up the WebPanel's Client-Side ExpandedStateChanging event and canel the event.
Inside the event, place the following code.
oEvent.cancel = true.
This should stop the panel from collapsing.
Here is a help link to the Csom:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebPanel_CSOM_Overview.html
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebPanel_Client_Side_Events_CSOM.html
Ok, so technically that does prevent it from remaining collapsed, but you can still see the panel collapse then expand again. So again, this isn't a completely desirable result. But, if that's our only option then I suppose we'll just have to live with it.
Thanks.