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;";
}
}
}
})
If I change the showTitle attribute to true, than the values are displayed.
Comment