Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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 3.2网格过滤器不工作_Extjs_Extjs3 - Fatal编程技术网

Extjs 3.2网格过滤器不工作

Extjs 3.2网格过滤器不工作,extjs,extjs3,Extjs,Extjs3,我是extjs新手,我在网格过滤器上使用extjs3.2。过滤器在每个标题下都正确显示,但它不是过滤器 var store = new Ext.data.Store({ id : 'user', autoDestroy: true, url: 'site/view.action', proxy : proxy,

我是extjs新手,我在网格过滤器上使用extjs3.2。过滤器在每个标题下都正确显示,但它不是过滤器

var store = new Ext.data.Store({
                    id : 'user',
                    autoDestroy: true,
                    url: 'site/view.action',
                    proxy : proxy,
                    reader : reader,
                    writer : writer, // <-- plug a DataWriter into the store
                                        // just as you would a Reader
                    autoSave : false,


                // <-- false would delay executing create, update, destroy
                // requests until specifically told to do so with some [save]
                // buton.
                });
这是我的GridPanel代码

 var grid = new Ext.grid.GridPanel({
                        store : store,
                        disableSelection: true,
                        id : "documentsGrid",
                        columns : [{
                                    header : "SAP ID",
                                    width : 120,
                                    sortable : true,
                                    dataIndex : 'sapid',
                                    filter: {
                                        //type: 'numeric'  // specify type here or in store fields config
                                    },
                                    filterable: true,
                                    renderer: function (value, metaData, record, rowIndex, colIndex, store) {
                                         return  getToolTip(value, metaData, record, rowIndex, colIndex, store);
                                    },
                                    editor : {
                                        xtype : 'textfield',
                                        allowBlank : true
                                    }
                                    },
     plugins: [editor,filters],
怎么了?我不明白

请帮忙


谢谢,因为您指定了筛选器不是本地的,这意味着您必须进行服务器端筛选。如果只想在客户端进行筛选,请指定local:true

还要确保过滤器中使用的数据索引引用了存储中的字段,并且没有遗漏任何内容

 var grid = new Ext.grid.GridPanel({
                        store : store,
                        disableSelection: true,
                        id : "documentsGrid",
                        columns : [{
                                    header : "SAP ID",
                                    width : 120,
                                    sortable : true,
                                    dataIndex : 'sapid',
                                    filter: {
                                        //type: 'numeric'  // specify type here or in store fields config
                                    },
                                    filterable: true,
                                    renderer: function (value, metaData, record, rowIndex, colIndex, store) {
                                         return  getToolTip(value, metaData, record, rowIndex, colIndex, store);
                                    },
                                    editor : {
                                        xtype : 'textfield',
                                        allowBlank : true
                                    }
                                    },
     plugins: [editor,filters],