RowBackgroundSelector not working or not implemented

3 posts, 1 answers
  1. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 16 Mar 2015 Link to this post

    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. Answer
    Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 19 Mar 2015 Link to this post

    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.

     
  3. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 19 Mar 2015 in reply to Tsvyatko Link to this post

    Thank you very much for your help !
    I've really appreciated that :)

    Best regards.

    Alessandro
Back to Top