Hi,
I have a WebDataGrid with two columns. What I want to do is, that if the value in a cell of the first columns is lower then the cell in the 2nd column I want to have this cells back color as green, otherwise as red.
In the classic WInGrid that was not a problem but I am really lost here.
Any help is appreciated.
Thanks & Regards,
Oliver
Hi Team,
The following script for text color is not working in IE9. Can you please tell similar code for IE9.
cell1.get_element().classList.add('red');
The style sheet color needs the important section or it gives overridden.
Can't get the server to side CssClass to work. The data in the column is blank as if it can't find thestyle sheet class. Is there a special way to reference the style you want to use?
WebDataGrid1.InitializeRow
' Difference_Value.
' change the background colour of the Difference_Value (red/green).
Then
Try
e.Row.Items.Item(11).CssClass =
"redbackground"
"greenbackground"
If
Exception
lblStatus.Text =
+ ex.Message
Sub
Stylesheet.css contains:
.redbackground
{
background-color: #FF0000;
color: #FFFFFF;
background-image:none !important;
}
.greenbackground
background-color: #008000;
background-image: none !important;
sorry for not answering in time.
The solution is great, I tested it yesterday.
Many thanks for the highly appreciated support!
Regards,
Hello Oliver,
Let us know if you need further assistance with this.
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support