:: Forum >>

How to change the background color in only one row

I need change the background color in only one row. For example, how to change the color of a row 8 in a table?

This line change a column 1 to "#e9f1f5" color:
obj.getTemplate("row/item", 1).setStyle("background", "#e9f1f5");

I need the same for one row.
Tuesday, July 5, 2005
I had the same problem but I found this worked for me:

var obj=new Active.Controls.Grid;
obj.defineDataProperty("color",function(i){if(i==8)return "#e9f1f5";else return "white"});
var row=new Active.Templates.Row;
row.setStyle("background",function(){return this.getItemProperty("color")});
Thursday, July 7, 2005
Thank you very much, S
Thursday, July 7, 2005

This topic is archived.

Back to support forum

Forum search