Results 1 to 2 of 2

Thread: GroupSummary isGrouped does not return expected result

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    5

    Exclamation GroupSummary isGrouped does not return expected result

    Ext version tested:
    • Ext 3.4.0


    Adapter used:
    • ext


    css used:
    • only default ext-all.css


    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.

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    5

    Default

    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;
        }
    });

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •