trying to subclass Grid
Hi there I've been trying to build a subclass to wrap all the initialization methods of AW
I can't get the alternating colors to work....
Any idea?
I can't get the alternating colors to work....
Any idea?
Active.Controls.CoolGrid = Active.Controls.Grid.subclass();
Active.Controls.CoolGrid.create = function(){
var obj = this.prototype;
var _super = this.superclass.prototype;
var row = new Active.Templates.Row;
row.setStyle("background", function(){return this.getProperty("row/order") % 2 ? "#FFFFE1" : "white"});
[b]_super.setTemplate("row", row);[/b] // I also tried obj.setTemplate, this.setTemplate....
}
Sam
January 15,