У меня проблема с указанием ширины в индексе выбора для комбинированного списка в extjs
.
Мой код указан ниже;
var inventorytbar = [
{
xtype: 'combo',
text: 'Filter Category',
hiddenName: 'local-states',
store: storeCat,
displayField: 'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
autoWidth: true,
editable:false,
value: 'All Inventory',
selectOnFocus:true,
boxMaxWidth: 500,
listeners:
{
'select': function (combo, record, index)
{
var catid = record.get('abbr');
selectedComboCat = catid;
var catname = record.get('state');
var newcatname = catname.replace(/ /g, '');
combo.setValue(newcatname);
}
}
}