0
如何在多个字段上创建过滤器,哪些过滤器在服务器上过滤,而不在本地存储中过滤?如何在多个字段上创建远程过滤器?分机Js 5
到目前为止,我只得到本地。
onFilter: function(field, newValue, oldValue, options){
var grid = Ext.getCmp('grid');
grid.store.clearFilter();
if (newValue) {
var matcher = new RegExp(Ext.String.escapeRegex(newValue), "i");
grid.store.filter({
filterFn: function(record) {
return matcher.test(record.get('id')) ||
matcher.test(record.get('names'));
}
});
}
}