我有一个编辑器网格,一个组合框是它的字段之一。
组合框使用 json 存储。
这是组合框代码:
var patternCmb = new Ext.form.ComboBox({ //combobox for workers
store: dsPatterns,
valueField: 'pid',
displayField: 'pname',
typeAhead:true,
lazyRender:true,
forceSelection:true,
minChars: 2,
valueNotFoundText:"not found",
editable: true,
triggerAction: 'all'
});
键入第三个字符后,将选择商店的第一个(不正确)值。可能是什么问题?
最佳答案
请尝试以下操作:
mode: 'local'
在您的组合框中。 autoLoad: true
在您的 dsPatterns(商店)中。 关于Extjs 组合框自动完成功能不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5633836/