20 Answers, 1 is accepted
Here is my code:
Vanya please use the "Format Code Block" button when you paste code, it's mush easier to read the,.
If you have any difficulties the alternative is to drag from Assets Library GridViewHeaderRow under the grid as it is shown in my previous post-modfy the style of that particular GridViewHeaderRow that is located under the grid as you wish and when you are done use the style created. and delete the Summer theme from the grid's definition apply GridViewHeaderRowStyle in the same way as
RowStyle and AlternateRowAStyle....
Hope it helps!
Using Blend work well if you don't use a a RowStyleSelector. If it is the case, why could it be to change the Background_Selected and/or Background_Over?
Modifying the background of a selected row involves predefining the template of GridViewRow, as described above. When you use RowStyleSelector, you should keep separate templates for all styles for this selector with desired brushes for these effects of a GridViewRow.
Hope this helps!
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Now we are in 2019. Is there still no easy way to change the SelectionColor? Predefining the complete (and in this case very complex style) just to change a color is not really strait forward...??? (And you have to check the cusomized templates for changes on every release - since almost 10 years now, in my case...)
As of R3 2018, RadGridView provides support for setting the background of its selected rows through the SelectedBackground property of GridViewRow. You can check this help article for a reference.
thank you very much for this info. Right now I'm on an older release but this is a reason to switch to the newest.
Is there also a Property for the HoverBackground in this Release?
No, this property is not available at the moment. However, I am going to introduce it for our upcoming service pack (February 20). Are you interested in another property related to GridViewRow's style?
And no, during the last years I changed only SelectionBackgound (Background_Selected + children) and HoverBackground (Background_Over + children). So this two properties would be fine (for me).
Kind regards from Germany,
I am going to add a property - MouseOverBackground of the GridViewRow. It will be available in our next internal build(next Monday) and in the upcoming SP (February 20).