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

One column with multiple colored boxes for statues

2 Answers 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 17 Nov 2014, 06:23 PM
We would like to add a Status column to our grid that has a colored box for each of the different boolean flags that have been set on a row.  

The table has AutoGenerateColunns set to true right now so all of the fields show up as check boxes.  We want to merge them all into one column with a title of Status.  We would love if we could duplicate this:



Any guidance on what control(s) to use?  

2 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 17 Nov 2014, 06:24 PM
The image didn't save.  Here is what we would like to replicate:
http://i.imgur.com/wxuSp9Z.jpg

0
Boris
Telerik team
answered on 20 Nov 2014, 03:57 PM
Hello Kevin,

I am not entirely sure what you mean by "We want to merge them all into one column with a title of Status". If I understand you correctly you want to have one header for all of your columns, if that is so you can check the Merging the headers section in the Column Header  documentation article. 

As for the colored box you mentioned, you can check the CellTemplateSelector documentation article. It will provide you with a way to conditionally apply a different data template to RadGridView cells. However, if that is not suitable to your scenario, then you can consider creating a new custom column, by following the Create Custom DateTimePicker Column documentation article or this DatePicker in GRidView forum thread.

On a side note if any of the provided suggestions is not suitable to your case, could you please provide us with more information?

Regards,
Boris
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.

 
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Boris
Telerik team
Share this question
or