:: Forum >>

setStyle of last row

Hello,

how can I change the colour of the last row in the grid?
I should be done when the grid is started.
I use the 2.x version.

Thx.
Wednesday, February 21, 2007

var lastrow=length(myData-1);

obj.defineRowProperty("Mycolor", function(row){
return row==lastrow ? "#AA0000" : null;
});

obj.getRowTemplate().setStyle("color", function(){
return this.getRowProperty("Mycolor");
});
Thierry
Wednesday, February 21, 2007
Sorry
var lastrow=length(myData)-1;
Thierry
Wednesday, February 21, 2007
var lastrow=myData.length-1;
Wednesday, February 21, 2007

This topic is archived.


Back to support forum

Forum search