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

Change background color of the entire row of RadGridView row

2 Answers 151 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Avi
Top achievements
Rank 1
Avi asked on 26 May 2011, 12:33 PM
Hi,

I am using RadGridView and I want to change the background color of a row. The rows have details about customers. I press the button of selected customer and this button send an email to the selected customer. If the email sends OK I want that the background color of this specific customer row will be change to green otherwise to red. Etch row has a different background color dependent if sending the email to this specific customer send ok (green) or with error (red).
I know I should have a property that will return the wanted color (red/green) and the click button row something like this :

GridViewRowStyle

<Property="Background" Value="{Binding Status}">

How can I implement this ?

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 May 2011, 12:36 PM
Hi,

 You cannot have bindings in Style setters in Silverlight 4 - you can do this in Silverlight 5. In the meantime you can use StyleSelectors for conditional formatting. 

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Avi
Top achievements
Rank 1
answered on 26 May 2011, 02:33 PM
can this will help me ?

http://blogs.telerik.com/blogs/posts/10-04-01/conditional_styles_and_templates_with_radgridview_for_silverlight_and_wpf.aspx
Tags
GridView
Asked by
Avi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Avi
Top achievements
Rank 1
Share this question
or