Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha Premium Member
GroupSummary isGrouped does not return expected result
Ext version tested:
Adapter used:
css used:
Browser versions tested against:
- IE 8
- FF 3.6.18 (firebug 1.7.3 installed)
Description:
The function isGrouped of the GroupSummary grid plugin does not return the expected result after the GroupingStore invokes the clearGrouping function.
The original function is:
Code:
isGrouped : function(){
return !Ext.isEmpty(this.grid.getStore().groupField);
}
This causes problems when clearGrouping is called because groupField is set to false. When false is sent to Ext.isEmpty, the result is false.
The function should really be:
Code:
isGrouped: function(){
var groupField = this.grid.getStore().groupField;
return !Ext.isEmpty(groupField) && groupField !== false;
}
The downstream effects of this is that when ever a grid has the GroupSummary plugin and the clearGrouping function has been called either through the menu or from applyState, there will be javascript when trying to resize a column. In IE, resizing a column actually causes some pretty weird visual side effects.
-
Sencha Premium Member
I put the following code in one of our javascript files to alleviate the issue:
Code:
Ext.ux.grid.GroupSummary.override({
isGrouped: function(){
var groupField = this.grid.getStore().groupField;
return !Ext.isEmpty(groupField) && groupField !== false;
}
});