Radscrollablepanel scroll using code

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Jun 2011

    Posted 24 Jun 2011 Link to this post

    hello,

    For my job i have to develop a program in which i need to scroll through the panel using 2 buttons (up and down)and the scroll bars have to be invisible, after a search of 2 ours i still don't know if this is possible whit the Radscrollablepanel, can anyone help me ?

    the program wil run in a factory hall on a touch screen computer which wil be operated whit cloves on so a scrollbar wil be difficult to use.

    Thanks in advance,
    Daniel
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 29 Jun 2011 Link to this post

    Hello Daniel,

    Thank you for writing.

    You can easily achieve this with the RadScrollablePanel and two RadRepeatButtons. I have attached a sample project where I have implemented this scenario. You have to set the RadScrollablePanel AutoScroll property to true and set its Size to (0,0). You can then use the PerformLargeIncrement, PerformLargeDecrement or PerformSmallIncrement, PerformSmallDecrement to scroll the content of the panel when the corresponding button is clicked.

    If you have further questions, feel free to ask.

    Regards,
    Ivan Petrov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Zubair
    Zubair avatar
    2 posts
    Member since:
    Aug 2011

    Posted 21 Apr 2012 Link to this post

    Hi,
    Thanks for the solution. It was really helpful. The only other thing I would like to achieve is that I want to disable the 'Scroll Down' button once we have reached the end of scrolling. Your help in this regard is much appreciated.

    Regards,
    M.Zubair.
  5. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 23 Apr 2012 Link to this post

    Hi Zubair,

    Thank you for writing.

    Please, find attached a modified version of the previous example with the desired functionality implemented.
    What you have to do is - after you perform the scrolling, you have to check whether you are at the scroll bar minimum or you are at its maximum.

    I hope this will be useful. If you need further assistance, I would be glad to help.
     
    Regards,
    Ivan Petrov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top