Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-3080 in 2.3.1.
  1. #1
    Ext GWT Premium Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    7
    Vote Rating
    0
    rdrever is on a distinguished road

      0  

    Default [2.3.0] Grid column headers in wrong order when varying header group levels used

    [2.3.0] Grid column headers in wrong order when varying header group levels used


    After upgrading to GXT 2.3.0 the headings on our grids are out of order when some columns have header groups and others do not. It appears that all the headers with groups are being moved before the columns without headers groups.

    A workaround we are doing for now is to add header groups to all the columns.

    Here is a simple test case to illustrate the issue:

    Code:
    import java.util.ArrayList;
    import java.util.List;
    import com.extjs.gxt.ui.client.data.BaseModelData;
    import com.extjs.gxt.ui.client.data.ModelData;
    import com.extjs.gxt.ui.client.store.ListStore;
    import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
    import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
    import com.extjs.gxt.ui.client.widget.grid.Grid;
    import com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    
    public class ColumnGroupingBugExample implements EntryPoint {
    
    
        public void onModuleLoad() {
            List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
            configs.add(new ColumnConfig("1", "1", 100));
            configs.add(new ColumnConfig("2", "2", 100));
            configs.add(new ColumnConfig("3", "3", 100));
            configs.add(new ColumnConfig("4", "4", 100));
            configs.add(new ColumnConfig("5", "5", 100));
            
            ListStore<ModelData> store = new ListStore<ModelData>();
            ModelData testData = new BaseModelData();
            testData.set("1", "1");
            testData.set("2", "2");
            testData.set("3", "3");
            testData.set("4", "4");
            testData.set("5", "5");
            store.add(testData);
    
    
            ColumnModel cm = new ColumnModel(configs);
            cm.addHeaderGroup(0, 0, new HeaderGroupConfig("1-2 Header", 1, 2));
    //        cm.addHeaderGroup(0, 2, new HeaderGroupConfig("3 Header", 1, 1));
            cm.addHeaderGroup(0, 3, new HeaderGroupConfig("4-5 Header", 1, 2));
            
            Grid<ModelData> grid = new Grid<ModelData>(store, cm);
            grid.setSize(520, 100);
            
            RootPanel.get().add(grid);
        }
    }
    headerMismatch.jpg

    Heading 3 should be in the middle but it is shown at the end.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,732
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    May 2013
    Posts
    2
    Vote Rating
    0
    ramum is on a distinguished road

      0  

    Default


    Any update on this? or any workaround please.

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    403
    Vote Rating
    15
    branflake2267 will become famous soon enough

      0  

    Default


    We are evaluating a fix for the 2.3.1 release. We have something in the pipe although we have some more discussion scheduled for it.

  5. #5
    Ext GWT Premium Member
    Join Date
    Nov 2010
    Posts
    20
    Vote Rating
    0
    Karthikeyan S is on a distinguished road

      0  

    Default


    Hello Sencha team,

    Can you please give some updates when will this addHeaderGroup with variable columns be fixed?.

    We need IE10 support for our product.
    So we had to upgrade to 2.3.0 yet Header group issue forces us not to.

    Can you please give us a time frame when the fix will be available or atleast give a patch which fixes this header issue?

    Kind Regards
    Karthikeyan S

  6. #6
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    403
    Vote Rating
    15
    branflake2267 will become famous soon enough

      0  

    Default


    This should be fixed in our 2.3.1 source that we plan on releasing shortly.

    Could you provide a test case so we could test your use case in IE10 for you?

    Brandon

  7. #7
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    403
    Vote Rating
    15
    branflake2267 will become famous soon enough

      0  

    Default


    If you have access to support, try the 2.3 nightly build and see if that works for you in IE10. Could you try the nightly?

    https://support.sencha.com/index.php#nightlies