使用1
//在使用groupStore前,要保证panel也有groupingPanel型
var groupStore = new Ext.data.GroupingStore({
proxy: proxy,
reader: reader,
groupField: "Sex",
sortInfo: {field: "Sex", direction: "DESC"}
});
本文介绍如何使用Ext.data.GroupingStore进行数据分组。在使用前,需确保panel已配置为groupingPanel类型。通过设置groupField指定分组字段,并通过sortInfo定义排序方式。
使用1
//在使用groupStore前,要保证panel也有groupingPanel型
var groupStore = new Ext.data.GroupingStore({
proxy: proxy,
reader: reader,
groupField: "Sex",
sortInfo: {field: "Sex", direction: "DESC"}
});
366
440

被折叠的 条评论
为什么被折叠?