I need to access the verticle scrollbar within the RadGridView control. All the search results I have found seem to not be supported in the latest version. As an example the snipet below is not working because ItemsControl is no longer supported.
var verticalScrollBar2 = (ScrollBar)this.RadGridView2.ItemsControl.GetChildByName("PART_VerticalScrollBar"); |
Can anyone share an example on how to access the scrollbar in the latest version?
Thanks
6 Answers, 1 is accepted
0
Accepted
Hi,
You can check the code in this blog post.
Best wishes,
Vlad
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.
You can check the code in this blog post.
Best wishes,
Vlad
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
Eric
Top achievements
Rank 1
answered on 23 Apr 2010, 04:53 PM
Thank you for the response Vlad. Is there a more straight forward example on accessing the scrollbar without the custom code for DomainDataSource? I just need to capture the scroll changed event.
0
Hi Eric ,
The code for accessing the scrollbar in my demo is not dependent on DomainDataSource. You need only SizeChanged event handler with our powerful extension methods (ChildrenOfType<>()).
Kind regards,
Vlad
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.
The code for accessing the scrollbar in my demo is not dependent on DomainDataSource. You need only SizeChanged event handler with our powerful extension methods (ChildrenOfType<>()).
Kind regards,
Vlad
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
Eric
Top achievements
Rank 1
answered on 26 Apr 2010, 02:36 PM
Hi Vlad
I got it to work based on your example.
Thanks!
I got it to work based on your example.
Thanks!
0
Timothy Kelley
Top achievements
Rank 1
answered on 29 Dec 2011, 03:52 PM
Can you please post a simple example?
Just a couple of lines of code to get at the ScrollChanged event please.
Tim
Just a couple of lines of code to get at the ScrollChanged event please.
Tim
0
Hi Timothy,
Please take a look at this blog post for further reference.
Kind regards,
Maya
the Telerik team
You can get ScrollBar/s as follows:
var scrollBars = this.gridchetoPesho.ChildrenOfType<
ScrollBar
>();
var scrollBar = this.gridchetoPesho.ChildrenOfType<
ScrollBar
>().FirstOrDefault();
Please take a look at this blog post for further reference.
Kind regards,
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>