Announcement

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

    [bug] ListGridField.icon and showTitle:false - cell values aren't displayed.



    SmartClient Version: v10.0p_2015-09-24/Enterprise Development Only (built 2015-09-24)

    Hello, please modify the #addStyle sample like this:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width: 500, height: 224, alternateRecordStyles: true, canDragSelect: true,
        sortFieldNum: 1,
        data: countryData,
        fields: [
            {name: "countryCode", title: "Flag", width: 50, type: "image", imageURLPrefix: "flags/16/", imageURLSuffix: ".png"},
            {name: "countryName", title: "Country"},
            {name: "capital", title: "Capital"},
            {
                name: "population",
                title: "Population",
                type: "number",
                icon: "flags/16/BR.png",
                showDisabledIcon: false,
                showTitle: false
            }
        ],
    
        getCellCSSText: function (record, rowNum, colNum) {
            if (this.getFieldName(colNum) == "population") {
                if (record.population > 1000000000) {
                    return "font-weight:bold; color:#d64949;";
                } else if (record.population < 50000000) {
                    return "font-weight:bold; color:#287fd6;";
                }
            }
        }
    
    })
    You'll see that the values in the 'population' field don't show up.
    If I change the showTitle attribute to true, than the values are displayed.

    #2
    This was indeed a bug. Thanks for the clear test case.
    We've made a change to address it - you can try the next nightly build, dated Sep 30 or above.
    As a temporary workaround, you could also explicitly set showValueIconOnly to false on the field in question.

    Regards
    Isomorphic Software

    Comment


      #3
      SmartClient Version: v10.0p_2015-10-01/Enterprise Deployment (built 2015-10-01)

      I can confirm it's working, thank you very much.

      Comment

      Working...
      X