PDA

View Full Version : img in the grid...????



TAG
20 Jul 2009, 2:34 AM
Hello,
would have the sample code for build the grid with img in the row? I can't use JSON.

I have a <div><img ..../></div> and I transform this HTML code in a grid .........

Condor
20 Jul 2009, 3:00 AM
Please explain more...

Do you simply want a DataView of images (plain list) or an image in the cells of a column in a GridPanel (grid with columns)?

TAG
20 Jul 2009, 3:01 AM
I'm sorry,
an image in the cells of a column in a GridPanel (grid with columns)

steffenk
20 Jul 2009, 3:11 AM
use a renderer and return any html markup.

Condor
20 Jul 2009, 3:12 AM
Example:

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

TAG
20 Jul 2009, 3:15 AM
ok, test this.....