Announcement

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

    highlighting bug where rule is applied to group headers

    Hi there, we have recreated the following bug in your online demos.

    Steps 1.
    Click Edit Hilite > Add Advanced Rule

    Filter > testNumericValue > is blank
    Appearance Flag field configure a background color

    Save the rule and you will see the Continent group headers get the highlight applied incorrectly to them.

    Code:
    var ds = isc.DataSource.get("countryDS");
    
    isc.VLayout.create({
        ID:"layout",
        width:600, height:250,
        membersMargin: 5,
        members: [
            isc.HLayout.create({
                ID:"buttonLayout",
                width:"*", height:30,
                membersMargin: 5,
                members: [
                    isc.IButton.create({
                        ID: "editHilitesButton",
                        autoFit: true,
                        title: "Edit Hilites",
                        click: "countryList.editHilites();"
                    }),
                    isc.IButton.create({
                        ID: "stateButton",
                        autoFit: true,
                        title: "Recreate from State",
                        click: function () {
                            var state = countryList.getHiliteState();
    
                            countryList.destroy();
                            recreateListGrid();
                            countryList.setHiliteState(state);
                        }
                    })
                ]
            })
        ]
    });
    
    // create the initial ListGrid
    recreateListGrid();
    
    // function to create a new ListGrid
    function recreateListGrid() {
        layout.addMember(isc.ListGrid.create({
            ID: "countryList",
            width:"100%", height:"*",
            alternateRecordStyles:true,
            dataSource: ds,
                groupByField:"continent",
            autoFetchData: true,
            canAddFormulaFields: true,
            canAddSummaryFields: true,
            fields:[
                {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", 
                    imageURLSuffix:".png"
                },
                {name:"countryName"},
                 {name:"testNumericValue", type:"float"},
                {name:"capital"},
                {name:"population", title:"Population"},
                {name:"area", title:"Area (km²)"},
                {name:"gdp"}
            ]
        }));
    
    }

    #2
    We've made a change to address this issue. Please try the next nightly build, dated Oct 18 or above

    Regards
    Isomorphic Software

    Comment


      #3
      Looks good, thank you.

      Comment

      Working...
      X