3.2.0

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.
February 21,

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
February 21,
Sorry
var lastrow=length(myData)-1;

Thierry
February 21,
var lastrow=myData.length-1;
February 21,

This topic is archived.

See also:


Back to support forum