:: Forum >>
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
Tuesday, February 22, 2005
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)
Tuesday, February 22, 2005
How to display Images in XML Table
Prakaash
Saturday, June 17, 2006
This topic is archived.
Back to support forum
Forum search