Ciao everybody,
I have a problem with the grid Width. How can I tell to the grid to get the size of the GridPanel in which it is?
Something like the old "autoWidth: true"
Grazie
Lorenzo
Ciao everybody,
I have a problem with the grid Width. How can I tell to the grid to get the size of the GridPanel in which it is?
Something like the old "autoWidth: true"
Grazie
Lorenzo
I guess you have a similar problem to mine (posted here: http://www.yui-ext.com/forum/viewtopic.php?t=2843).
Unfortunately no one answered :/
I don't understand. Can you explain a little further? Is GridPanel broken for you? Thanks.
Hi Jack,
I have a grid in a GridPanel in a center region of a border layout. Everything works fine except the fact that the body of the grid does not complete the with of the panel.
As you can see in the screenshot, I have the right part of the row left white... I would like to have the row till the end of the panel.
How can I do that?
Many thanks and sorry for my poor English.
Ah, the grid is in fact expanding to cover the whole panel but the rows now end at the last column. This is how the grid originally worked and there was a hack in .33 to get them to go all the way across no matter what. That hack doesn't work with the new version.
So, what do you suggest? Is there something I can do other than add another empty column till the end of my panel?Originally Posted by jacksloc
Thanks
It looks fine to me. If it's really a big problem, I can try to hack something up.
No, no... don't do this just for me. It's not a big problem...
It was just easy.
I didn't have to worry about the dimension of the panel in which the grid was.
Another benefit was that resizing the window, I didn't have the horizontal scroll bar till the end of the last column.
But if I'm the only one having this problem... it's OK, I will add an empty column.
Thanks for your help.
You shouldn't be getting any extra scrollbars. Do you have a URL I can look at? I can take a look for you and see what we can do.
use grid.getView().fitColumnsToContainer(); works fine for me.