1
我有问题在extjs
的组合框的Select索引中给出宽度。如何设置在组合框中选择索引宽度在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);
}
}
}
为什么你设置'php'标签? – pltvs 2010-11-01 07:50:21
你想设置选择框的宽度,或者得到它? – SW4 2010-11-01 09:09:08