Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/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
在extjs中过滤网格数据_Extjs_Filter_Grid - Fatal编程技术网

在extjs中过滤网格数据

在extjs中过滤网格数据,extjs,filter,grid,Extjs,Filter,Grid,我想使用extjs中的复选框来过滤网格。这是我的复选框 xtype: 'checkboxfield', id: 'cb1', boxLabel: 'Online', checked: true, handler: function (field, value) { } xtype: 'checkboxfield', id: 'cb2', boxLabel: 'offline', checked: true, handler: function (field, value) { } 我想要的是

我想使用extjs中的复选框来过滤网格。这是我的复选框

xtype: 'checkboxfield',
id: 'cb1',
boxLabel: 'Online',
checked: true,
handler: function (field, value) { }

xtype: 'checkboxfield',
id: 'cb2',
boxLabel: 'offline',
checked: true,
handler: function (field, value) { }
我想要的是,当我选择它时,它会过滤我的商店。它应该告诉商店显示在线记录和/或离线记录


我读了一些关于布尔过滤器的内容,所以可能需要使用布尔过滤器,但我不知道如何使用。

在处理程序上使用商店的过滤器方法

handler: function (field, value) { 
    store.filter('online', value);
}

如何对多个值进行排序?例如:store.filter('color',红色和蓝色)??您可以使用user store.filterBy方法进行多个列或复杂筛选。您可以阅读文档以了解用法