3.2.0

Dynamically change cell data or attributes

Hi All,

The following code seems right but stuffs up and makes odd cells bold:

obj.setCellText(function(col,row) {
            if (this.getCellValue(13, row) == '9'){
               obj.getCellTemplate(2, row).setStyle("font-weight", "bold");            
               return this.getCellValue(2, row);
            } else {
                obj.getCellTemplate(2, row).setStyle("font-weight", "normal"); 
                return this.getCellValue(2, row); 
            }     
        }, 2);


Whats the best way to make a cells text bold depending on another cells value?

John Sourcer
October 20,

This topic is archived.

See also:


Back to support forum