是否可以使用extjs在组内进行分组?

时间:2018-02-27 04:38:03

标签: javascript extjs

我有姓名,类型和父母。我可以按'类型'进行分组。是否可以将结果组按“父”分组?

我试图按“分类”分组:

initComponent: function(){
    Ext.apply(this, {
        :
        :
        features: [Ext.create('Ext.grid.feature.Grouping', {
            groupHeaderTpl: '{columnName}: {name} <tpl if="children">({children.length} ' + this.items + ')</tpl>'
        })],
        forceFit: true,
        store: Ext.create('Ext.data.Store', {
            groupField: 'type',
            model: 'model.props',
            proxy: {
                type: 'memory',
                reader: {
                    type: 'json',
                    rootProperty: 'props'
                }
            }
        })
    });
}

按“类型”分组。现在我需要将每个结果组按“父”分组

1 个答案:

答案 0 :(得分:0)

不使用标准ExtJS,普通网格和石斑鱼。这些仅支持由一个属性分组。但是:

相关问题