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

GridView Themes + Selected Row color

5 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 10 Sep 2012, 02:32 PM
Hi,

i'm using a RadGridView with Theme="Metro". But how can i change the color of a selected Row? Now it
is gray, but i want something like lightblue.

Thanks
Best Regards
Rene

5 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 10 Sep 2012, 03:22 PM
Hi Rene,

 

The styles used in our themes are theme specific. If you want to modify the style for GridViewRow against Metro theme you can manually copy it and modify the selected color through manipulating the Border element named Background_Selected in the way you need. You may find the styles for all Telerik themes from the Themes folder of your personal installation.
Please give it a try and let us know if you encounter any problems!  



Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ITA
Top achievements
Rank 1
answered on 10 Sep 2012, 06:06 PM
Hi,

i tried to read 4393 rows of code, but i can't find the part, which is relevant for me? Please can you give me some more
details please?

Thanks
Regards
Rene
0
Vanya Pavlova
Telerik team
answered on 10 Sep 2012, 06:24 PM
Hello Rene,




I have prepared small sample demo which illustrates how to modify the selection effect of GridViewRow in Metro theme to LightBlue. Will you verify how this works for you?  



All the best,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ITA
Top achievements
Rank 1
answered on 11 Sep 2012, 06:33 AM
Hi,

this is realy great, thanks a lot. But i have a little problem. I'm using a RowStyleSelector which shows me a different background, if
one porperty of my ViewModel ist "OK" or "FAILER".... In combination with your Demo the Color of the selected row is still gray.
How does your example work with an RowStyleSelector?

Thanks
Best Regards
Rene
0
Vanya Pavlova
Telerik team
answered on 11 Sep 2012, 07:15 AM
Hello Rene,

 


Thank you for getting back to us! When using RowStyleSelectors you should provide two different Metro styles with their templates where the selection background is Light Blue. Just change the background of the row in these two separate styles to achieve your goal.
Hope this helps!   



Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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