Sorting affects background color
Hello ,
Could you please help me on this program. I do alternate backgrond color + depending on column 18 , the background color will be different.
Now the sorting creates the problem. The color ffffa0 remains on the same row even after sorting.
var alternate = function(){
var rwn = this.getProperty("row/order");
var color = rwn % 2 ? "#fcfaf6" : "#ffffff";
var colorVal = myData[rwn][18];
return (colorVal=='1') ? "ffffa0" : color;
}
var row = new Active.Templates.Row;
row.setStyle("background", alternate);
Thanks
Hari
Could you please help me on this program. I do alternate backgrond color + depending on column 18 , the background color will be different.
Now the sorting creates the problem. The color ffffa0 remains on the same row even after sorting.
var alternate = function(){
var rwn = this.getProperty("row/order");
var color = rwn % 2 ? "#fcfaf6" : "#ffffff";
var colorVal = myData[rwn][18];
return (colorVal=='1') ? "ffffa0" : color;
}
var row = new Active.Templates.Row;
row.setStyle("background", alternate);
Thanks
Hari
Hari
April 28,