Situation
I would like to conditionally format the text in a cell in a grid to red depending on its value.
Example:
If the value is less than 0 then display the text in red.
Value
123.8 - no change to text font
0 - no change to text font
-123.8 change text font to red.
I would like to use the ClientTemplate on a bound column
Here is a sample of the grid's code:
columns.Bound(c => c.Adjusted_Appreciation).Title("Adjusted_Appreciation").Format("{0:c}").Width(150).ClientTemplate("# if (Adjusted_Appreciation > 0) {}; #");
columns.Bound(c => c.Adjusted_Appreciation).Title("Adjusted_Appreciation").Format("{0:c}").Width(150).ClientTemplate("# if (Adjusted_Appreciation > 0) {}; #");
What do i put in the {}?
Thanks
Corey