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

Background color for SelectedItem even if RadGridView is disabled

1 Answer 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nuno
Top achievements
Rank 1
Nuno asked on 18 Oct 2011, 05:18 PM
Hi,

i want to disable a RadGridView at some point, but i would like to maintain a different background color for cells/row of the SelectedItem.
I've seen some examples of how to change the background through Styles and VisualStates but it only manages to change the background color of all cells, including the selected ones.

Thank you for you help.

Courela

1 Answer, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 18 Oct 2011, 06:30 PM
Hello Nuno,

 
When you enable disable RadGridView, GridViewRow, GridViewColumn, GridViewCell you perform this logic on a cell level. Indeed when you disable the whole grid, a gray border appeared and mouseover/selection effects are lost. If you want to maintain these effects you should predefine the template of GridViewCell and modify the Border element named Background_Disabled.
You should change its background color to a color, which allows transparency. 



Best wishes,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Nuno
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or