开发者

ExtJS - ComboBox width in EditorGridPanel

I have set up an EditorGridPanel with ComboBox's and it's working well. The only issue I'm having is that the width of the ComboBox seems to only expand to the width of the grid column, and not the content of the ComboBox itself.

Is there a way around this?

Here's an example of what I mean:

ExtJS - ComboBox width in EditorGridPanel

Tha开发者_开发知识库nks!


Use the

listWidth : Number

config option

You could calculate the length of the largest content element and then set the listWidth in the 'expand' event of the combo

Cheers!


listWidth does'nt exist in extjs 4.

Add below to combobox config:

matchFieldWidth: false,
listConfig: {
    width: 200
},


You can use RowEditor to managed multi forms editor ! see sencha's samples ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜