我有一个简单的组合框如下:组合框 - 在下拉列表中自动位置
{
xtype: 'combobox',
id: 'prd-main-group',
fieldLabel: 'ANA MAL GRUBU',
inputWidth: 320,
labelWidth: 160,
labelAlign: 'right',
margin: '15 0 0 0',
fieldStyle: 'height: 26px; text-align: right; font-size: 12pt; color:#505050',
store: articleMain,
valueField: 'WHG',
displayField: 'WHG_BEZ',
queryMode: 'remote',
autoSelect: false,
selectOnFocus: true,
hideTrigger: true,
msgTarget: 'side',
triggerAction: 'all',
typeAhead: true,
minChars: 2,
listeners: {
select: function (combo, selection) {
articleBase.proxy.extraParams = {'maingroup': combo.getValue()};
Ext.getCmp('prd-base-group').setDisabled(false);
Ext.getCmp('prd-base-group').getStore().removeAll();
Ext.getCmp('prd-base-group').setValue(null);
Ext.getCmp('prd-sub-group').getStore().removeAll();
Ext.getCmp('prd-sub-group').setValue(null);
articleBase.load();
},
focus: function(combo) {
combo.setValue('');
}
}
},
当我输入两个或多个字符,组合框下拉列表中出现,显示值,但没有自动定位所选记录从下拉列表中选择。
正如你所看到的附加屏幕截图,完成的值,但下拉列表没有集中选定的记录!
我的问题是,当我们键入几个字符,在下拉列表中应自动改变基于给定的字符。
我想什么都没有发生之前。 –