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

How can I access ScrollBar thumb?

9 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ss
Top achievements
Rank 1
ss asked on 07 Oct 2010, 11:21 AM

Hello,

Can you please help me how can I access vertical scrollbar thumb of GridView? 

Thank you. 

9 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 07 Oct 2010, 02:50 PM
Hi ss,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
loic
Top achievements
Rank 1
answered on 07 Mar 2011, 05:46 PM

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.

0
Vanya Pavlova
Telerik team
answered on 07 Mar 2011, 06:43 PM
Hi ss ss,


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
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
loic
Top achievements
Rank 1
answered on 08 Mar 2011, 09:55 AM
I can't use Blend so I would like a Xaml help if possible.

I just want a simple way to only change ScrollBar Color it should be fase et easy. Is not it?

thx
0
Vanya Pavlova
Telerik team
answered on 08 Mar 2011, 02:55 PM
Hello Loic,

 
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.

Greetings,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
loic
Top achievements
Rank 1
answered on 08 Mar 2011, 03:28 PM
Sorry but I shoud be evry stupid I don't see a downloadableProject on your link.

Also, I have no issues with GridViewSrollViewer Background, but I have with ScrollBars it's no the same thing. Is it?

Thx
0
Vanya Pavlova
Telerik team
answered on 08 Mar 2011, 06:21 PM
Hi Loic,


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
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
loic
Top achievements
Rank 1
answered on 09 Mar 2011, 02:52 PM
Actually more than 500 code lines to set a background color, it is not what I name "an Easy Way" ;)
But that works very well!

Thank you very much.
0
Vlad
Telerik team
answered on 09 Mar 2011, 02:59 PM
Hello,


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). 

Regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
ss
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
loic
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or