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 GridPanel";“分组展示”;不显示/不工作_Extjs_Extjs4_Aem - Fatal编程技术网

ExtJS GridPanel";“分组展示”;不显示/不工作

ExtJS GridPanel";“分组展示”;不显示/不工作,extjs,extjs4,aem,Extjs,Extjs4,Aem,我在ExtJs的GridPanel特性上遇到了一些奇怪的行为。我已经包括了一个groupField配置选项,它不显示也不工作。也许你们能告诉我为什么 createStore : function(itemPath) { return new CQ.Ext.data.GroupingStore({ proxy : new C

我在ExtJs的GridPanel特性上遇到了一些奇怪的行为。我已经包括了一个groupField配置选项,它不显示也不工作。也许你们能告诉我为什么

createStore : function(itemPath) {
                        return new 
                             CQ.Ext.data.GroupingStore({

                                 proxy : new CQ.Ext.data.HttpProxy(
                                            {
                                                url : "/bin/test/private/folder/check.json",
                                                method : "GET"
                                            }),
                                //method: "GET",
                                reader: new CQ.Ext.data.JsonReader({
                                        root: 'variables',
                                        fields: [
                                            {name: 'group', type: 'string'},
                                            {name: 'path', type: 'string'},
                                            {name: 'status', type: 'string'}
                                        ]
                                }),
                              updateData : function() {

                                    // request the data 
                                    this.load({
                                        params : {                  
                                            path : itemPath         
                                        }
                                    });
                                },
                                sortInfo: {field: 'path', direction:'ASC'},
                                groupField: 'group',
                                groupOnSort: true,
                                autoLoad : true
                         });
                    },

如果要在网格面板中显示组,还需要将添加到网格中。

更新数据来自何处?我没有在任何地方的文档中看到它。这段代码是导致问题的原因吗

以下是Sencha的示例:

确保您也在查看3.4文档