Highlight a Row in error
Hi,
I'm having difficulty doing a rather simple task.
I have a grid of 40rows X 20 columns.
One field on the row dictates whether its a row in error or not.
I'm looking so set the backgroud of any row in error to red.
I've tried using bits and pieces of previous posts but with no luck.
var colors = ["red", "blue", "green"];
obj.defineDataProperty("color", function(i){return colors[i]});
var row = new Active.Templates.Row;
row.setStyle("background", function(){
return this.getItemProperty("color");
});
obj.setRowTemplate(row);
This code does the necessary color setting but how do you specify which row??
I'm a bit confused??
Would anyone have an example of what I'm trying to do working??
Thanks to all
I'm having difficulty doing a rather simple task.
I have a grid of 40rows X 20 columns.
One field on the row dictates whether its a row in error or not.
I'm looking so set the backgroud of any row in error to red.
I've tried using bits and pieces of previous posts but with no luck.
var colors = ["red", "blue", "green"];
obj.defineDataProperty("color", function(i){return colors[i]});
var row = new Active.Templates.Row;
row.setStyle("background", function(){
return this.getItemProperty("color");
});
obj.setRowTemplate(row);
This code does the necessary color setting but how do you specify which row??
I'm a bit confused??
Would anyone have an example of what I'm trying to do working??
Thanks to all
Brian.
September 7,