View Full Version : Grid Panel: Display images from database

25 Nov 2011, 3:23 AM
I have a task as...

1. Images are stored in database
2. I want to display items and related image in grid panel
3. I am using c#.net with ExtJs

Renderer is added as follows

{ header: 'Image 1', dataIndex: 'ITEM_IMAGE', width: 200, type: 'string', height: 200, renderer: function (v, p, r) {
return String.format('<img src="controllername.ashx?ImageId={0}"/>', v); // Here server side processing is done in controller to generate image. Not sure whether its correct since controller never gets called.

} },

Please help.

Thank you.

25 Nov 2011, 8:54 AM
Your image tag isn't loading? Weird