:: Forum >>

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
Sunday, October 21, 2007
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)
Monday, October 22, 2007
ThanX alex.
Joni
Monday, October 22, 2007
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
Monday, October 22, 2007
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 -

http://www.activewidgets.com/grid.examples/indicator-template.html
Alex (ActiveWidgets)
Monday, October 22, 2007
Ok.
I'll read it.
ThanX.
Joni
Monday, October 22, 2007

This topic is archived.


Back to support forum

Forum search