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

CellStyleSelector over Selected Row Indicator

2 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 30 Nov 2011, 07:42 PM
Hi, 

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..

Thanks

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 01 Dec 2011, 11:01 AM
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.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ron
Top achievements
Rank 1
answered on 21 Feb 2013, 08:26 PM
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.
Tags
GridView
Asked by
Julian
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Ron
Top achievements
Rank 1
Share this question
or