PDA

View Full Version : Combo Box width



mike b
20 Aug 2014, 9:25 AM
Is it possible for a combo box to have it's value list width be different from the value/trigger box?

The easiest way to explain this is through a demonstration. In this case, its from Telerik (eeek)

http://www.telerik.com/help/aspnet-ajax/combobox-auto-width.html


I (http://www.telerik.com/help/aspnet-ajax/combobox-auto-width.html)f so, I could not find the property or function to allow this to happen.

TIA,
Mike

vegaslight
20 Aug 2014, 10:08 AM
You need to specify matchFieldWidth to false, and set width on listConfig parameter.
http://docs.sencha.com/extjs/4.2.2/#/api/Ext.form.field.ComboBox-cfg-listConfig



{
xtype: 'combobox',
matchFieldWidth: false,
listConfig: {
width: 500
}
}

mike b
20 Aug 2014, 10:44 AM
thanks!!