PDA

View Full Version : How to show images in grid?



noname
8 Mar 2007, 11:19 PM
Hi all,

I have a paging grid, running successfully, thanks to yui-ext.
Now I want to put some images in the grid

the way i planned is the path of the image 'll b there in the table,
and I 'll insert the image wherever it is needed.

How could this be accomplished?

JeffHowden
8 Mar 2007, 11:32 PM
Define a renderer for the column that contains the images. Then, in your custom function you've assigned as the renderer, build out the relevant HTML and return that in your function. You can see an example of a custom renderer in the paging grid in the examples.