Below is my example code:
var obj = new AW.UI.Grid;
var imageLink = new AW.Templates.ImageText;
obj.setCellTemplate(new AW.Templates.Link, 1);
Let's say the data set has in it:
I do this:
// Setting Imp Icons
return "<a target='_new' href='"+
"'><img border='0' src='http://www.domain.com/images/" +
this.getCellValue(1,row) + ".gif'></a>"
What it does is set column 0 (Google) to the LINK in column 2 (http://www.google.com" with an image in column 2 (google)
Now, here is the thing. I take the value of "google" from column 1 and add to it in the FRONT the the http location and to the END I add ".gif"
This way, I don't have to use CSS to define ALL the images I need. In my case, I can't use CSS because I'd have about 500 CSS statements. So I just reference the image file on the server directly.
Hope it helps (someone helped me with it).
I do have a working example if you want to see it.
On the page, click a different "tab" than "R" (which is blank at the moment - so the grid is empty. Pick the "A" Tab.
The FEAS, IMP. FAC, ISA, CSA image dots load a PDF if you click on them.
If you role over the "St" column, it should also display the County as a tooltip.
I'm not exactly sure what you are trying to do with the contract piece, but I'm sure with a little creative coding (and if I understood it better) it is possible.
just i want to know the site which has to follow
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.