You could also use the kid.XML function or elementtree to inject
formatted HTML on the controller/model side by adding a get property
on your model class or using a proxy class in your controller or you
could use a javascript library (MochiKit, jQuery, etc.) to change tag
attributes on the client side.
Pseudo example jQuery:
$("td").each(function(i){
if (eval(this.text) > 0) { this.addClass("redtext");}
});
On Oct 10, 1:38 pm, Dero <[EMAIL PROTECTED]> wrote:
> Hello
>
> How can I change the font color of a cell in a datagrid based
> on a value there ?
>
> Pseudo example:
>
> if cell.value > 0 then cell.value.font.color = green
> else cell.value.font.color = red
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---