Scroll to item in RadScrollablePanel

2 posts, 0 answers
  1. Hamid
    Hamid avatar
    1 posts
    Member since:
    Sep 2012

    Posted 07 Oct 2012 Link to this post

    Hi
    I use RadScrollablePanel in my app. In runtime add many buttons. In other list when user select name of button, RadScrollablePanel scroll to button. how can i do this? RadScrollablePanel is AutoScroll enabled.
    I use this code too : 
    Point btnpos = new Point(itemButton.Location.X,itemButton.Location.Y);
    PanelOfEachGroup.VerticalScrollbar.PerformScrollTo(btnpos);

    and:
    PanelOfEachGroup.ScrollControlIntoView(btnpos);

    btnpos is the button in RadScrollablePanel.
    Thanks.
  2. Anton
    Admin
    Anton avatar
    167 posts

    Posted 09 Oct 2012 Link to this post

    Hi Hamid,

    Thank you for contacting Telerik Support.

    This scenario is not supported, however, you can achieve the desired functionality with the following work around:
    this.radScrollablePanel1.VerticalScrollbar.Value = button2.Location.Y;
    this.radScrollablePanel1.VerticalScrollbar.PerformSmallIncrement(1);
    this.radScrollablePanel1.VerticalScrollbar.PerformSmallDecrement(1);

    I hope this helps.

    Greetings,
    Anton
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top