View Full Version : Explicit groups

User Name
29 Sep 2014, 5:50 AM
I would like to define groups for an ExtJS 4.2 grid, so that all group headers would be displayed even if they contain no rows.

Ext.define('myModel', {
extend: 'Ext.data.Model',
fields: ['myField']
var myStore = Ext.create('Ext.data.Store', {
model: 'myModel',
groupField: 'myField'
var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
enableGroupingMenu: false
var packagesTable = {
xtype : 'Ext.grid.Panel',
store : 'myStore',
features: [groupingFeature]
So in my case, myField has a set of possible values, for every one of which I would like to have a group header permanently displayed - even if the group is empty.

30 Sep 2014, 10:03 PM

I'm afraid the grouping API doesn't allow for group headers to be rendered when there are no records represented in the group.