One column with multiple colored boxes for statues

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    15 posts
    Member since:
    Feb 2014

    Posted 17 Nov 2014 Link to this post

    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. Kevin
    Kevin avatar
    15 posts
    Member since:
    Feb 2014

    Posted 17 Nov 2014 Link to this post

    The image didn't save.  Here is what we would like to replicate:
    http://i.imgur.com/wxuSp9Z.jpg

  3. Boris
    Admin
    Boris avatar
    276 posts

    Posted 20 Nov 2014 Link to this post

    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.

     
Back to Top