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

[Solved] Conditional formatting on row by binded value

2 Answers 183 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zbyněk
Top achievements
Rank 1
Zbyněk asked on 21 Feb 2011, 04:58 PM
Hi,
I have a question: Can I set the RadGridView that for each line set the background color of the binded value?

Something like this:
<telerik:RadGridView ...>
<telerik:RadGridView.Row BackgroundColor={Binding BoolValue, Converter={StaticResource Bool2Color}} />
</ Telerik: RadGridView />


I want to use binding is this possible ?

Thanks for answer
Zbynek Šulc

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 21 Feb 2011, 05:14 PM
Hi Zbynek,

The recommended approach would be to use a  RowStyleSelector.

Best wishes,
Pavel Pavlov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Zbyněk
Top achievements
Rank 1
answered on 22 Feb 2011, 09:29 AM
I followed instrucstion at
http://www.telerik.com/help/silverlight/gridview-rowstyleselector.html
Thanks for help.
Tags
GridView
Asked by
Zbyněk
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Zbyněk
Top achievements
Rank 1
Share this question
or