Support Forum
...any hints on doing that?mats wrote:Hm, yes this is certainly a quite advanced case though solvable. You would have to override the internalRenderer method to handle your case to return some icon HTML blob for your cells. Slighty tricky but possible
...i could look at the scheduler source of course...
I had also to override a column renderer for specific columns in grids, maybe this can help you:
You would have to change it to something like
And set this renderer to your column's, it will be handled the same for all the elements in your column.
Is this what you (both) were talking about? Sometimes I get a bit lost xD
BTW, nice customers that want nice things, eh?
function colorRenderer (value, metaData, record, rowIndex, colIndex, stor)
{
var table = cachedTemplate('<div width="100%" style="background-color:#{color}"><table><tr><td>{value}</td></tr></table></div>');
return table.apply({color: value.color, value: value.value});
}
You would have to change it to something like
function imageRenderer(value, metaData, record, rowIndex, colIndex, stor)
{
var table = cachedTemplate('<div width="100%" ><img src="{source}" alt="{alt}" onclick="{function}" /></div>');
return table.apply( value: value.source, alt: value.alt, function: value.function});
}
Is this what you (both) were talking about? Sometimes I get a bit lost xD
BTW, nice customers that want nice things, eh?