:: Forum >> Version 1 >>

How to define Row Header Styles individual - Guess I am almost there...

I am setting row headers (labels for each row) with the following function:
obj.setRowProperty("text"
      function(
i){
        return 
reportData[i][1];
      }
    );
 
I need to format specific row headers differently, for example in bold. Is there a way to define that (I am almost certain there is one, considering how powerful the ActiveWidget Grids is).

I am using for individual row formatting the following, and probably there is something similar to set the column header, but I cannot figure it out right now:

var rowFontWeightTotals = function() {
     var 
rowIndex this.getProperty("row/index");
     var 
val reportData[rowIndex][0];
        
//alert(val);
     
if( val == 'Total' ){
       return 
"bold";
     }
  }

var 
row = new Active.Templates.Row;

  
row.setStyle("font-weight"rowFontWeightTotals);
  
obj.setTemplate("row"row);
 
Andreas
Monday, May 2, 2005



This topic is archived.

Back to support forum

Forum search