-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a grid in a panel, and if the panel width expands, I'd like the grid to expand accordingly. Currently, only the grid border extends, but the column widths still remain the same. Is there any way with the grid component to achieve automatic expansion, like a html table?
Thanks.
fixedLayout to true
@SergeTK, Thanks. That worked. I always thought that fixedLayout meaning you have to speicify px width for columns.
Now, not being greedy, but when the panel width decreases, the grid can shrink to such a small size that the content is cut off. Is there a way to get a scroll bar when the data size is bigger than the container allowed, and able to expand when the container expands?
I don't think so as component will adjust to fill the container.............. that the price for relative dimentions....... but then I really don't see it as a problem with shrinking surely user would realize he can't read the screen anymore and increase the size. Or you could write a custom js to mix relative and concrete dimentions...
Another way that could work is to use window or borderlayout and put grid as their children as they have properties which allow you to specify minWidth, minHeight which in turn don't allow component to be risized smaller then thouse properties......
Asked: 2009-07-15 20:49:55 +0800
Seen: 488 times
Last updated: Jul 17 '09