3.2.0

before grid is created need row color based on column cell text

Hi,
Before I write the grid I need to change the row color to red,
if the column cell text is > 1. How can I do this ???
Thanks,
Cathy
May 18,
I could use this answer also... been trying and trying, thought of formating it with HTML before I Load it, but then sorting is a PAIN
Travis Harris
November 10,
One way, I think

function getRowColor(pData){
if(pData==1) return 'red';
else return 'white';
};

function myRowColor(){
var value = //write here the code to get the cell vallue or whatever;
try{return getRowColor(value);}catch(error){}
return this.getProperty('background');
}


grid.getTemplate('row', 0).setStyle('background-color', myRowColor);
SolutionLover
November 11,

This topic is archived.

See also:


Back to support forum