ExtJS - Width of ComboBox in EditorGridPanel

I created the EditorGridPanel with ComboBox and it works well. The only problem I am facing is that the width of the ComboBox seems to expand to the width of the grid column, and not from the contents of the ComboBox itself.

Is there any way around this?

Here is an example of what I mean:

ComboBox in EditorGridPanel

Thanks!

+8
extjs grid combobox
source share
3 answers

Use

listWidth: Number

Configuration

You can calculate the length of the largest content item and then set listWidth in the "expand" combo event

Hooray!

+6
source share

listWidth does not exist in extjs 4.

Add below to the combobox configuration:

matchFieldWidth: false, listConfig: { width: 200 }, 
+1
source share

You can use RowEditor for the managed multiform editor! see samples of sencha;)

-2
source share

All Articles