Cell Color depneding on value of Cell
How do I change the color of a Cell dependant on it's value.
E.g. 0 it's red, over 5 it's blue.
I'm trying this:
E.g. 0 it's red, over 5 it's blue.
I'm trying this:
grid.defineCellProperty("color", function(row, col){
if (col = 7){
if (this.getCellValue(7, row) == 0)
{
strColour = "RED";
}else if (this.getCellValue(7, row)>5)
{
strColour = "BLUE";
}else
} else {
strColour = "WHITE";
}
return strColour
})
grid.getCellTemplate(6).setStyle("background-color", function( ){
return this.getCellProperty("color");
});
Matt Thompson
August 14,