9 Answers, 1 is accepted
Briefly to access either horizontal or vertical scrollbars of RadGridView you should edit the template of the GridViewScrollViewer. There you should find the VerticalScrollBar, edit its template and then you can access its Thumb. You can do the same for horizontal scrollbar.
I have prepared an example for you that demonstrates this approach.
All the best,
Vanya Pavlova
the Telerik team
Hi,
Is there any simple way to change background color of a RadGridView's scrollbar?
I tried to create a RadGridView template which refers to a RadGridViewScrollViewer, but whitout succes:
I think it's a very simple case but....
Thanks you for any suggestions.
You may take a look at the following screencast where you can see how to customize GridViewScrollBars.
Let me know if you need any further assistance.
Kind regards,
Vanya Pavlova
the Telerik team
I just want a simple way to only change ScrollBar Color it should be fase et easy. Is not it?
thx
For those who do not use Expression Blend, we offer our Themes as a separate projects and you can get the xaml files for all of them from the Themes folder of your personal installation. If you need to change the background of the GridViewScrollViewer, copy the style to your project and change the corresponding brush that paints its background.
Vanya Pavlova
the Telerik team
Also, I have no issues with GridViewSrollViewer Background, but I have with ScrollBars it's no the same thing. Is it?
Thx
Please accept my apology for the omission.
Let me try to explain this case. Within the GridViewScrollViewer's template you have to access either the vertical or horizontal scrollbars and modify the Thumb element there.
You may find attached sample project that demonstrates this approach.
Kind regards,
Vanya Pavlova
the Telerik team
But that works very well!
Thank you very much.
The markup is generated from Blend automatically after few clicks - you do not have to write it or copy/paste it. This is how the XAML platform works (both Silverlight and WPF).
Vlad
the Telerik team