View Full Version : help defining image column using templateColumn

16 Sep 2009, 9:21 AM
Originally, I thought I'd extend the Ext.grid.Column, create a plugin, and register my own xtype to create an GridImageColumn...

The setConfig method of ColumnModel barfs, because it wants a grid.Column.type:

var cls = Ext.grid.Column.types[c.xtype || 'gridcolumn'];

So I guess I'm now going to use TemplateColumn and/or XTemplate?

So, simply, I have a column that has a value, say a string or number (valX) that I can easily suffix with .jpg or .png. valX.jpg. How do I define/use a ColumnTemplate to display an image? (or am i totally wrong- again)

thanks in advance,