3.0 beta 2

Multiple Images

I am trying to add 3-4 icons to the grid. I saw an example to add one image, but how does one go about adding a few more icons to the first 3-4 columns.

Please advise. Thanks!
seeker
February 22,
Take /example/grid/images.htm as a starting point. Then assign image template to all columns where you want the image to appear.

obj.setColumnTemplate(new Active.Templates.Image, 0);
obj.setColumnTemplate(new Active.Templates.Image, 1);
...

Then you image function should return different images depending on the column (and row?) index:

obj.setDataProperty("image", function(i, j){return myImages[i][j]});



Alex (ActiveWidgets)
February 22,
How to display Images in XML Table
Prakaash
June 17,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.