This is a migrated thread and some comments may be shown as answers.

Negative values in column should be red in MVC

1 Answer 646 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 2
Ian asked on 06 Aug 2013, 06:40 PM
I have a column that binds to an MVC Model.

When the value is negative it should be displayed in red. 

How is that done?

 
columns.Bound(e => e.UnrealizedGainLoss)
       .Title("Unrealized Gain /<br> Loss ($)")
       .HeaderHtmlAttributes(new {title = "Market Value and Book Value."})
       .Format("{0:N}")
       .ClientFooterTemplate("<div class=aright>#= kendo.format('{0:N}', sum) #</div>")
       .HeaderHtmlAttributes(new {@class = "aright"})
       .HtmlAttributes(new {@class = "aright"});

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 07 Aug 2013, 01:48 PM
Tags
Grid
Asked by
Ian
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or