Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    issue with "Columns" context menu option and headerSpans

    The latest nightly build:
    smartClient Version: SNAPSHOT_v9.0d_2013-02-19/PowerEdition Deployment (built 2013-02-19)

    has an issue when trying to show/hide columns with the context menu when headerSpans are present. When trying to expand the Columns menu I get the following JS error:
    13:17:46.891 [ERROR] [smartgwt_test] 13:17:46.889:TMR4:WARN:Log:TypeError: this.anySpannedFieldsVisible is not a function
    Stack from error.stack:
    unnamed({Obj}, {Obj}, {Obj}) @ smartgwt_test/sc/modules/ISC_Grids.js:2095
    Menu.setDynamicItems() @ smartgwt_test/sc/modules/ISC_Grids.js:2583
    Menu.show() @ smartgwt_test/sc/modules/ISC_Grids.js:2554
    Menu.placeSubmenu(_1=>{Obj}, _2=>{Obj}) @ smartgwt_test/sc/modules/ISC_Grids.js:2578
    Menu.showSubmenu(_1=>{Obj}) @ smartgwt_test/sc/modules/ISC_Grids.js:2571
    Menu.changeSubmenu() @ smartgwt_test/sc/modules/ISC_Grids.js:2570
    [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ smartgwt_test/sc/modules/ISC_Core.js:258
    Timer._fireTimeout("$ir57") @ smartgwt_test/sc/modules/ISC_Core.js:974
    unnamed() @ smartgwt_test/sc/modules/ISC_Core.js:970
    unnamed() @

    I've reduced it to the following simple test case and still see the issue:

    Code:
        ListGridField a1 = new ListGridField("a1");
        ListGridField a2 = new ListGridField("a2");
        ListGridField a3 = new ListGridField("a3");
        ListGridField b1 = new ListGridField("b1");
        ListGridField b2 = new ListGridField("b2");
        ListGridField c1 = new ListGridField("c1");
        
        HeaderSpan aSpan = new HeaderSpan("A", new String[] {"a1", "a2", "a3"});
        HeaderSpan bSpan = new HeaderSpan("B", new String[] {"b1", "b2"});
    
        final ListGrid testGrid = new ListGrid();
        testGrid.setWidth(500);
        testGrid.setHeight(200);
        testGrid.setHeaderHeight(60);
        testGrid.setFields(a1,a2,a3,b1,b2,c1);
        testGrid.setHeaderSpans(aSpan, bSpan);
        testGrid.draw();

    #2
    Just a quick note to let you know we have a developer working on this issue. We'll let you know when we have a resolution

    Comment


      #3
      We've made a change which should address this. Please try the next nightly build (dated Feb 20 or greater)

      Regards
      Isomorphic Software

      Comment

      Working...
      X