:: Forum >> Version 2 >>

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(13row) == '9'){
               
obj.getCellTemplate(2row).setStyle("font-weight""bold");            
               return 
this.getCellValue(2row);
            } else {
                
obj.getCellTemplate(2row).setStyle("font-weight""normal"); 
                return 
this.getCellValue(2row); 
            }     
        }, 
2);
 
Whats the best way to make a cells text bold depending on another cells value?

John Sourcer
Friday, October 20, 2006



This topic is archived.

Back to support forum

Forum search