
When i move the mouse above the gridview i get a yellow highlight, that causes the text to be unreadable.
Is there a easy way to set the row background/foreground color for the highlight, and selection?
For example:
Highlight: background = yellow, foreground=black
Selection: background = orange, foreground=black
With regards,
Rob
18 Answers, 1 is accepted


Thanks for your help!
What this does, it quickly shows the color defined in the trigger, but there is still that yellow rectangle thats popping up on front.
Also when selecting, the color from the property is applied, but another rectangle is put on top (kind of yellow)
Do you know how to turn this off, or change that color?
Edit: When setting the Mouseover/Selection foreground to black, solved my reading problem, but one has to like the yellow...
With kind regards,
Rob

Generally the best way to override the default grid styles for the row is copy the style in Blend and change (or even remove) desired states.
Best wishes,Vlad
the Telerik team

I'm no Blend expert (not to mention that is sometimes give undisired effects when installed),
Is it possible to post an example how to set that 'yellow' rectangle to blue for example?
Maybe an idea to make this a property for the next release?
Or if possible a selection that is always readable when mouseover/selected....
With kind regards,
Rob
Exposing these colors as properties will limit the grid to just solid colors. You will not have cool gradients, borders, animations, etc. I've attached screenshot how you can do this easily in Blend.
Best wishes,Vlad
the Telerik team

I'm sorry, i cannot get/create that template in blend 4.
----
Start Blend
New Project, WPF Application
Add reference for gridview
Place radgridview on window
Create sample data, set it as itemssource for the gridview
RadGridView->Edit Template -> Edit Copy
Now all items (rows) are inside PART_GridViewVirtualizingPanel?
----
I aggree that it's a very cool effect!, but that effect should also (have) set the foreground color, because now all items with a white foreground (or yellow for example), are unreadable, making the control not look right.
With the help of Venya (trigger) i now have set the foreground to black on the mouseover/isselected event, but if possible, i would appriciate if you could show me how to do this in blend or directly in xaml.
With kind regards,
Rob



I am using RadGridView with IsMouseOver property. I want the row color as #CF7600 when mouse hovers on it. I have set the IsMouseOver property with background color. But when I put mouse on the row, for a fraction of second #CF7600 color shows up and turns back to light yellow (default color). Can you check this and tell me what the problem is.
<telerik:RadGridView.RowStyle>
<Style TargetType="{x:Type telerik:GridViewRow}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" Value="#CF7600"/>
</Trigger>
</Style.Triggers>
</Style>
</telerik:RadGridView.RowStyle>
Regards,
Salini
If you want to achieve the desired result simply you have to edit the GridViewRow's ControlTemplate and especially the brushes used in Background Over and Background Selected,please see the following link.
I have prepared an example for you that uses your color in Background_Over and pink In Background_Selected.
Please see the attached application and let me know if you need any further assistance.
Kind regards,
Vanya Pavlova
the Telerik team


I'm having trouble for customize the colors of mouseover color and selected color in Expression Blend 4.
I'll like an intstruction for insert between the tags <telerik:RadgridView></telerik:RadgridView>.
Thank You,
Valdomiro.
In order to change the colors when a GridViewRow is in MouseOver and Selected States, you need to change the brushes used in Background_Over and Background_Selected border elements within its template.
Please use the attached example that demonstrates this approach.
If you need any further assistance please let me know.
Greetings,
Vanya Pavlova
the Telerik team

I have selected a gridview row and it is colored with "Chartreuse".
Why is only the border of this row in this color? Where can I change this property?
When I leave the focus of this grid by clicking on another button, the color changes in a kind of gray. Why does it change to this color? Where can I change this property?
I have attached two example pictures.
Kind regards
Sebastian

Ok I have found the answer in this URL:
http://www.telerik.com/support/code-library/remove-the-selectedunfocused-state-for-the-radgridview
Actually, the Background is being set, however as the theme is applied over it you are observing this visual behavior. As explained and demonstrated in a sample project by my colleague Vanya, the proper way to achieve this customization is to modify the template of GridViewRow. Please refer to the attachment from the previous answer.
Best Regards,
Stefan X1
Telerik
