3.0 beta 2

Hyper link and images in a cell

Hello,
Is there any way to add to a more then one image and/or link items to a cell?

ThanX,

Joni
Joni
October 21,
Yes, you can have arbitrary html instead of just cell text -

var myCells = [
['<a href="http://www.google.com">Click me</a>', ...],
...
]

grid.setCellText(myCells);
Alex (ActiveWidgets)
October 22,
ThanX alex.
Joni
October 22,
Hi,

I think that i thanked you to fast :)
I need to explain my self again.
The solution you gave is already know but i don't want to add images/links as html text but rather use the Link and Image controls of ActiveWidgets by using the setCellTemplate method or something else.
In all the examples that you give fom the Image and lInk template i see that you assign 1 for each cell and i want to know if i can assign more then one becuase i in my grid have a column that has serveral hyperlinks that use images for the link and also some other images that are not hyper links.

I hope i explained my self better.

ThanX
Joni
October 22,
In this case you have to modify (create your own) cell template and possibly add more properties to the cell data model. Here is the example which shows how to add another element to the cell template and link it to the new cell property -

/grid.examples/indicator-template.html
Alex (ActiveWidgets)
October 22,
Ok.
I'll read it.
ThanX.
Joni
October 22,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.