:: Forum >>
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
Thursday, May 15, 2008
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)
Thursday, May 15, 2008
This topic is archived.
Back to support forum
Forum search