我在ExtJs的GridPanel功能上遇到了一些奇怪的行为。我已经包含了一个groupField配置选项,它不显示,也不工作。也许你们可以给我一个想法,为什么?ExtJS GridPanel“显示在组中”不显示/不工作
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
});
},