Data bound row style

2 posts, 0 answers
  1. Jan
    Jan avatar
    58 posts
    Member since:
    May 2010

    Posted 19 Aug 2010 Link to this post

    I need to have rows in my grid colored differently depending on data that they show.
    For instance, the object bound to a row has property "IsBlue". If the IsBlue= true, I want a row to be colored blue. How can I achieve this?

  2. Maya
    Maya avatar
    4062 posts

    Posted 19 Aug 2010 Link to this post

    Hello Robert Lukkenaer,

    You may use StyleSelectors or DataTemplateSelectors and depending on your custom logic to apply a different style/template for every single row or cell. 
    You can find online examples for both Style and DataTemplate Selectors in our demos.

    Kind regards,
    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
Back to Top