Extjs 组合框自动完成功能不起作用

标签 extjs combobox grid

我有一个编辑器网格,一个组合框是它的字段之一。
组合框使用 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/

    相关文章:

    java - 带有两个 JSON 对象的 POST 请求

    javascript - Ext Js 4 - 网格单元到单元拖放?

    c# - 如何将组合框的选定值转换为整数?

    Python tkinter : Using a "textvariable" in a combobox seems useless

    .net - 是否有用于组合框的内置 .net string/double 对象?

    包含多行的 HTML 表格

    CSS 网格——理解文本的网格

    javascript - 如何在javascript文件中加载相同的函数两次

    javascript - 在 .NET 3.5 中将 ExtJS 与 Asp.net 和 WCF 一起使用的最佳实践是什么?

    objective-c - 如何使用 Cocoa 在 PDF 中生成网格?