Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms 网格Costum逻辑中的Extjs 3.4倍数搜索_Forms_Search_Extjs_Grid_Filtering - Fatal编程技术网

Forms 网格Costum逻辑中的Extjs 3.4倍数搜索

Forms 网格Costum逻辑中的Extjs 3.4倍数搜索,forms,search,extjs,grid,filtering,Forms,Search,Extjs,Grid,Filtering,我看起来像这样,但是对于使用costum逻辑的ExtJS3.4过滤 var filters = [ new Ext.util.Filter({ filterFn: function(item){ return item.get('GridFieldName') == searchValue && item.get('GridFieldName1') == searchValue; } }) ]; store.filte

我看起来像这样,但是对于使用costum逻辑的ExtJS3.4过滤

var filters = [
     new Ext.util.Filter({
      filterFn: function(item){
         return item.get('GridFieldName') == searchValue && item.get('GridFieldName1') == searchValue;
      }
     })
];
store.filter(filters);

在Ext3.4中,配置选项被称为
fn
,而不是
filterFn
,您可以将其作为配置对象传递,而不是作为
Ext.util.Filter
,下面是一个示例:

store.filter([
    {
        fn: function(item) {
            return item.get('GridFieldName') == searchValue && item.get('GridFieldName1') == searchValue;  
        }
    }
]);