3.2.0

setCellImage based on cell value

I am loading a XML table into a grid with multi-row-marker selection mode. Three columns with many rows. I'd like to add a cell image to the first column, but I'd like the image to change based on the value of the third column. Can I get some tips?? The only method I can think to do this is to modify the table response and add the image to the text. I've tried the setCellImage function, but I do not see a good way to have that recur as the loads.

For now I am going to run with modifying the table response, but if anyone has a better idea please share.

Thanks!
AT
February 15,
You can assign a function which calculates the image name from the cell value -

http://www.activewidgets.com/javascript.forum.14583.2/how-do-i-add-an.html

http://www.activewidgets.com/grid.howto.cells/images.html
Alex (ActiveWidgets)
February 15,
Alex,

Thanks for the link. I made it work as I suggested, and also tried it the way your link suggests. Don't know which is better or worse.

Thanks!
AT
February 17,

This topic is archived.

See also:


Back to support forum