On 2/5/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> Without subclassing DataGrid, is it possible to show an image for each value
> of a boolean column in a DataGrid?
>

You could just create an instance and overwrite the .template
attribute.  Just copy/paste the template into your controller from the
widget's source, instanciate the widget and then assign your modified
template to widget_instance.template.

Unless the new api forbids this (which afaik it doesn't) that should
be all you need to do using a py:if in the template to display the
image.

Lee

Reply via email to