Extjs组合框自动完成不';行不通

Extjs组合框自动完成不';行不通,extjs,combobox,grid,Extjs,Combobox,Grid,我有一个编辑器网格和一个组合框是它的一个字段。 combobox使用json存储。 以下是组合框代码: var patternCmb = new Ext.form.ComboBox({ //combobox for workers store: dsPatterns, valueField: 'pid', displayField: 'pname', typeAhead:true, lazyRender:true, forceSelection

我有一个编辑器网格和一个组合框是它的一个字段。 combobox使用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' 
});
键入第三个字符后,将选择存储的第一个(不正确)值。可能是什么问题?

请尝试以下操作:

  • 在组合框中设置
    模式:“本地”
  • 确保dsPatterns(存储)中有
    自动加载:true

  • 我认为extjs4中的
    mode
    已改为
    queryMode
    。我不认为OP是在谈论extjs4。我知道,我只是想让今天看到这个问题的人注意到如何做。