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

AutoScrollPosition is not working

1 Answer 428 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Michelle
Top achievements
Rank 1
Michelle asked on 28 Aug 2012, 03:07 AM
Hi,
I have tried setting AutoScroll to true. However, whenever i tried to get or set the AutoScrollPosition, it is returning me zero.
Please advise.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 30 Aug 2012, 12:03 PM
Hi Michelle,

Thank you for contacting us.

The AutoScroll property is inherited from the base ScrollableControl class of the .NET framework. When set to true, it enables scrolling among the child controls that were added inside the scrollable control. However, our components have a different structure. They are composed of elements rather than controls which improves their extensibility and performance.

In the case of RadPanorama, this control is designed to hold tile elements and tile groups and therefore the AutoScroll property is not relevant. If you need to programmatically set the scroll bar position, you can access directly the scroll bar and set its Value property. The following code snippet demonstrates this:
this.radPanorama1.PanoramaElement.ScrollBar.Value = 100;

I hope you find this useful. Should you have any additional questions, do not hesitate to ask.

Kind regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Panorama
Asked by
Michelle
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or