Grid Width - Ext JS

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
Reply With Quote
  #2  
Old 02-21-2007, 09:18 AM
Default

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 :/
Reply With Quote
  #3  
Old 02-21-2007, 10:59 AM
Default

I don't understand. Can you explain a little further? Is GridPanel broken for you? Thanks.
Reply With Quote
  #4  
Old 02-21-2007, 11:23 AM
Default

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.
Reply With Quote
  #5  
Old 02-21-2007, 11:38 AM
Default

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.
Reply With Quote
  #6  
Old 02-21-2007, 11:44 AM
Default

Quote:
Originally Posted by jacksloc
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?

Thanks
Reply With Quote
  #7  
Old 02-21-2007, 11:49 AM
Default

It looks fine to me. If it's really a big problem, I can try to hack something up.
Reply With Quote
  #8  
Old 02-21-2007, 11:59 AM
Default

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.
Reply With Quote
  #9  
Old 02-21-2007, 12:34 PM
Default

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.
Reply With Quote
  #10  
Old 02-22-2007, 12:42 PM
Default

use grid.getView().fitColumnsToContainer(); works fine for me.
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值