Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
How to insure that Band[0] is wide enough to show all of Band[1]
posted

Using 2008.2, I'm trying to write a hierarchical grid where Band[0] has a single column and Band[1] has several.  I need the TableLayout to be Fixed.  I don't want to set the width of Band[0] to be arbitrarily large (e.g. 900px), since that means it frequently stretches off the page, but if I don't give it any width at all, then the Band[1] rows cause the entire grid to show up with scroll bars.  Because the TableLayout is Fixed, if I set Width to 100%, the grid column disappears completely.  There doesn't appear to be any way to calculate the width on the server side.  Do I have to calculate the width on the client side, and set the width there?

I've attached some sample code that demonstrates the problem.  If you click on the Expand icon, scroll bars appear.  If you uncomment the line that sets the width to 100%, the grid disappears.  If you uncomment the line that sets the width to 900px, then the top band is too wide for the lower band.  Simply include this control in a placeholder on a web page.