Posted on: 4/29/2013 4:28:45 AM | Views : 272

I've defined a Panel control which sits inside a bunch of nested parent controls.  The width of the Panel is set to "100%", which is appropriate, as certain elements in the parent controls change their width depending on different circumstances.  Thus, the Panel control's width changes accordingly.
In order for ScrollBars="Both" or ScrollBars="Auto" to work properly though, I've found that I need to explicitly set the Width & Height of the Panel.  While there's no problem doing this initially, the fact is that when those other parent elements change their width, that is only monitored by client-side code.  So I took to writing code like this:
var width = sender.get_width(); // Get the width of 'radPaneMain' $('[id$=_panelMucking]')[0].style.width = width + 'px'; // and use it to set the width of 'panelMucking' That works fine in a client-side c ...

Go to the complete details ...