3.2.0

COLORS in the AWDataGrid

Hello;
I'm using a AWDataGrid whitch contain a row named "state" whitchcan contain "YES" or "NO" values.
I want to color the YES whith in green and the NO in red, how can i do that?
Maher
May 15,
obj.defineRowProperty("Mybackcolor", function(row){
return this.getCellValue(0, row)=='true' ? "red" : "yellow";
});

obj.getRowTemplate().setStyle("background-color", function(){
return this.getRowProperty("Mybackcolor");
});

and also XML-based sample -

http://www.activewidgets.com/javascript.forum.20517.5/applying-colors-to-rows-and.html
Alex (ActiveWidgets)
May 15,

This topic is archived.

See also:


Back to support forum