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

Change row style based on value

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Allan asked on 17 Aug 2015, 10:20 AM

Hello there,

I have a grid set up and I'd like to change the row and or cell style based on the value of a particular column.  For example a field had a value of "live" the row would be green or alternatively thee would be a green icon next word "live".  Can the grid do this? I had a look at templates but they don't seem to be specific enough or perhaps I wasn't understanding them.  I don't need any CSS/styling advice I just need to know if the grid can assign a class or whatever to the cell or row based on a single field data and if so how?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 18 Aug 2015, 08:05 AM

Hello Allan,

I would suggest to check the following project, that demonstrates a sample approach to implement the scenario. I hope it will help you to implement it on your end.

Regards,
Dimiter Madjarov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Allan
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or