我有一个列表中的组合框的一组值的搜索筛选器,ExtJS的:在组合框中
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>';
}
}
}
当我键入在组合框中键入一个数字它根据输入的数字筛选,但是当我输入文本时,它不是基于输入的文本进行筛选。 如何根据输入的文字进行过滤。
不,它不是服务器端filtering.It是ExtJS的组合框,提供过滤facilitiy我希望。 – user1321824