:: Forum >>

AW.Templates.Image in 2.5

This code worked well in the 2.0 version: Only the Image shows up in the grid.
Now in the 2.5 version the image and the cell text are displayed?

this.grid.setCellTemplate(new AW.Templates.Image, index);
this.grid.setCellImage(function(col,row) { return this.getCellText(col,row); }, index);

Any idea?
ozzel
Wednesday, December 5, 2007
Apparently this is a bug (regression) in AW 2.5. Here is a patch/fix -

(function(){
    new AW.Templates.Image;
    AW.Templates.Image.prototype.setContent("box/text/html", "");
})();


Add this code either to the end of aw.js file or directly into your page before you create any of AW objects.
Alex (ActiveWidgets)
Wednesday, December 5, 2007
Fixed in 2.5.1
Alex (ActiveWidgets)
Wednesday, December 12, 2007

This topic is archived.


Back to support forum

Forum search