Extjs4 ExtJs:在组合框中搜索筛选器

Extjs4 ExtJs:在组合框中搜索筛选器,extjs4,Extjs4,我有一个组合框,其中列出了一组值 Ext.define('loincList', { extend: 'Ext.data.Model', fields: [{ name: 'loincNumber', mapping: 'loincNumber' }, { name: 'component', mapping: 'component' } ]

我有一个组合框,其中列出了一组值

Ext.define('loincList', {
            extend: 'Ext.data.Model',
            fields: [{ name: 'loincNumber', mapping: 'loincNumber' },
                     { name: 'component', mapping: 'component' }            
            ]
        });    

ds = Ext.create('Ext.data.Store', {
            model: 'loincList',
            proxy: {
                type: 'ajax',
                url : url+'/lochweb/loch/LOINCData/getLOINCData',
                reader: {
                    type: 'json',
                    root: 'LOINCData'
                }
            }
        });
组合框:

{
        xtype: 'combo',
        fieldLabel: 'Search Loinc Code',
        name: "loincId",       
        displayField: 'loincNumber',                    
        valueField: 'id',
        width: 400,                 
        store: ds,
        queryMode: 'local',
        allowBlank:false,
        listConfig: {
            getInnerTpl: function() {
                return '<div data-qtip="{loincNumber}.{component}">{loincNumber} {component} {status}</div>';
            }
        }

    }

当我在组合框中键入一个数字时,它会根据输入的数字进行过滤,但当我键入一个文本时,它不会根据输入的文本进行过滤。如何根据输入的文本进行过滤。

过滤在服务器端起作用,如果您打开Firebug之类的选项,您将看到一个特殊参数,通常命名为filter,其中包含您在控件中键入的文本,因此,您需要检查服务器端发生了什么。您需要在服务器端处理筛选文本并根据需要进行筛选。

在组合框中键入数据时,它将根据显示字段进行筛选。因此,我认为当您键入文本时,它不是根据输入的文本进行过滤,因为组合框中没有像您键入的文本那样带有前缀的displayField。

不,这不是服务器端过滤。我希望是Extjs组合框提供了过滤功能。