PDA

View Full Version : Put an image in a GridPanel row



casbar
31 Jul 2009, 2:01 AM
Hello,
i load a json store in a gridpanel.
in the first column there is in every row a URL to an image...
I want to show this image instead of the URL.

I hope u know what i mean...

Someone got an idea how i could do it?

Thanks a lot!
casbar

Condor
31 Jul 2009, 2:08 AM
Use a renderer, e.g.

{header: 'Image', dataIndex: 'url', renderer: function(v){
return '<img src="' + v + '" />';
}}

casbar
31 Jul 2009, 2:12 AM
U are my idol!!