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

RowBackgroundSelector not working or not implemented

2 Answers 89 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alessandro
Top achievements
Rank 2
Alessandro asked on 16 Mar 2015, 11:14 AM
Hi again :)
Is it possible to have a datagrid with row background color binded to a property of the model? I suppose RowBackgroundSelector could do the trick but it seems not implemented or not working.
I've binded to a property of the model and using a converter returning a SolidColorBrush but it's not working.

Can you help with this scenario?

Thank you in advance for any help you may give.

Alessandro

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 19 Mar 2015, 09:44 AM
Hi Alessandro,

In order to use RowBackgroundSelector you need to create class that implements ObjectSelector<Brush>.

I have prepared sample project demonstrating how to use it. Please have a look at the attachment and let us know if you have any further questions.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Alessandro
Top achievements
Rank 2
answered on 19 Mar 2015, 03:05 PM
Thank you very much for your help !
I've really appreciated that :)

Best regards.

Alessandro
Tags
DataGrid
Asked by
Alessandro
Top achievements
Rank 2
Answers by
Tsvyatko
Telerik team
Alessandro
Top achievements
Rank 2
Share this question
or