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

[Solved] GridViewCell GridViewRowSelectedCell and a Theme

3 Answers 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 18 Feb 2010, 11:13 PM
Hi,

I am working on a custom Theme for the GridView and I have run into an issue with GridViewCell.  I am trying to create a default template and then modify the GridViewRowSelectedCell colors but it seems that when I run my app it doesn't the color.  In fact it doesn't appear to change the cell anymore and the cell stays the same colors and the rest of the row.

I have used an example that changes the CellStyle programatically which worked fine but I have to imagine there is a way to modify it in a Theme compatible way.

Cheers,
Clint

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 19 Feb 2010, 11:14 AM
Hi Clint Singer,

My guess is that when you are retemplating the cell you are setting its background to something different than transparent. If this is the case it would explain the missing row selection. In actuality the cells are rendered on top of the rows and as the row selection is in the row setting a color to the cell will make it hide the selection. If you want to change the "default" cell color in your theme set this color on the row and keep the cell background to transparent.

Let me know how this goes and if you need any further assistance.

Sincerely yours,
Kalin Milanov
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Clint Singer
Top achievements
Rank 1
answered on 19 Feb 2010, 04:40 PM
Hi,

The row selection color is working fine.  It is the cell selection color that isn't working.  Typically the cell selection color is different from the row selection, ie. in the Office Black theme the cell selection is a lighter shade of the row selection color.  In my case it appears that the CellStyle doesn't take effect.  If I click on a cell to enter an edit mode, then in that case it works fine and I get into an editing state with appropriate styling.  But in that situation I haven't changed the default template yet.

Is there any reason why setting the GridViewCell default template in my custom theme would cause the grid to fail to load any of the CellStyles? In this case neither the default nor custom themes appear to be operational.

Cheers,
Clint
0
Kalin Milanov
Telerik team
answered on 22 Feb 2010, 07:57 AM
Hi Clint Singer,

This should not be the case. I have tried reproducing the issue but to no avail. Maybe there are some specifics to your particular case I am missing. Could you please provide me with a sample solution demonstrating the problem so I can be of further assistance.

Thanks.

All the best,
Kalin Milanov
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Clint Singer
Top achievements
Rank 1
Share this question
or