CellStyleSelector over Selected Row Indicator

3 posts, 0 answers
  1. Julian
    Julian avatar
    3 posts
    Member since:
    Nov 2011

    Posted 30 Nov 2011 Link to this post


    I'm applying a CellStyleSelector which sets the background of the cell based on certain criteria.
    The user will also need to select multiple rows to complete certain functions. 

    However, when I set the cell style, it appears over my selected and hover which gives the user an odd looking interface.
    How do I get around this? I tried using CellTemplates but I think I then need to have a template for each of my columns? As each template needs to include the bound object (I'm binding to a collection of classes).

    Please could you shed some much needed light on this..

  2. Ivan Ivanov
    Ivan Ivanov avatar
    1218 posts

    Posted 01 Dec 2011 Link to this post

    Hello Julian,

    The default background of GridViewCell is set to Transparent, in order to display properly the visual elements that are place behind it (i.e. row's "select" and "over" borders).  I have prepared an example project that partially solves your issue and I have attached it for your reference. Unfortunately an alternative approach won't be possible without serious modifications in GridViewRow/GridViewCell template structure. Please, let us know whether this is an appropriate solution for your case.

    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. Ron
    Ron avatar
    1 posts
    Member since:
    Apr 2011

    Posted 21 Feb 2013 Link to this post

    For any one else that comes up against this problem, an easy partial solution may be to use a partially transparent background so that the highlighting can still be seen.  Not optimal, but may be good enough for some cases.
Back to Top