Change Row color based on data
Here the sample code of change row color based on data (col) :
function myColor()
{
var value = this.getDataProperty("text", col);
if(value == 0)
return 'black';
else if(value == 3)
return 'red';
}
obj.getTemplate('row').setStyle('color', myColor);
function myColor()
{
var value = this.getDataProperty("text", col);
if(value == 0)
return 'black';
else if(value == 3)
return 'red';
}
obj.getTemplate('row').setStyle('color', myColor);
Hilman
January 14,