Setting Cell Image question
In my grid, I have Column 11 with a VALUE of "wood", "oil", "solar", etc
Those display fine.
I'm trying to REPLACE thsoe text values with their cooresponding images (as provided to me by our Creative Services department.
THIS CODE WORKS and replaces the ext with the "favorites" image
obj.setCellTemplate(new AW.Templates.Image, 11);
obj.setCellImage("favorites",11);
MY CODE DOES NOT: In the second line, I'm reading the original value of Column 11 ("wood" and trying to replace it with the fully qualified path to where the wood.gif resides). What I get is just blank cells in Column 11.
obj.setCellTemplate(new AW.Templates.Image, 11);
obj.setCellImage("http://www.domain.com/images/gen-queues/"+obj.getCellValue(11,i)+".gif",11);
obj.setCellImage("favorites",11);
Does anyone see what I'm doing wrong?
Oh, as an FYI, the above two block are in a javascript loop - "i").
Does anyone know how I'd code this to make it happen right as the grid gets displayed for the first time? Right now, I have to click on a button to make the function click off.
Any help would be greatly appreciated. I've been struggling with this for a while.
Those display fine.
I'm trying to REPLACE thsoe text values with their cooresponding images (as provided to me by our Creative Services department.
THIS CODE WORKS and replaces the ext with the "favorites" image
obj.setCellTemplate(new AW.Templates.Image, 11);
obj.setCellImage("favorites",11);
MY CODE DOES NOT: In the second line, I'm reading the original value of Column 11 ("wood" and trying to replace it with the fully qualified path to where the wood.gif resides). What I get is just blank cells in Column 11.
obj.setCellTemplate(new AW.Templates.Image, 11);
obj.setCellImage("http://www.domain.com/images/gen-queues/"+obj.getCellValue(11,i)+".gif",11);
obj.setCellImage("favorites",11);
Does anyone see what I'm doing wrong?
Oh, as an FYI, the above two block are in a javascript loop - "i").
Does anyone know how I'd code this to make it happen right as the grid gets displayed for the first time? Right now, I have to click on a button to make the function click off.
Any help would be greatly appreciated. I've been struggling with this for a while.
Carl
February 24,