AutoScrollPosition is not working

2 posts, 1 answers
  1. Michelle
    Michelle avatar
    7 posts
    Member since:
    May 2012

    Posted 27 Aug 2012 Link to this post

    I have tried setting AutoScroll to true. However, whenever i tried to get or set the AutoScrollPosition, it is returning me zero.
    Please advise.
  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 30 Aug 2012 Link to this post

    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 >>
Back to Top