:: Forum >> Version 2 >>

Get cell value

Hi,

how can we get the cell value if we don't know the row and colunm?

I have 2 php page runing AW grid with some data coming from sql.
The background of a cell must be red if the value on the cell is more or equal to zero... How can I do this?

Actually I'm using the trial version 2.0.2

Thanks
Angel
Friday, July 6, 2007
Dual for loops?
Monday, July 9, 2007
obj.getCellTemplate().setStyle("background-color", function() {                                             
        return 
this.getControlProperty("bgcolor");                                                                
    }); 

     
obj.defineCellProperty("bgcolor", function(colrow){
        if (
col == 1) { 
          if (
this.getCellText(colrow).match(/Urgent/)) {
            return 
"red";
          } else if (
this.getCellText(colrow).match(/High/)) {
            return 
"#FF6600";
          }
        } else if (
col == 2) { 
          if (
this.getCellValue(colrow) >= 3) {
            return 
"red";
          }
        }
     }); 
Mike
Wednesday, July 11, 2007



This topic is archived.

Back to support forum

Forum search