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

Radscrollablepanel scroll using code

3 Answers 342 Views
ScrollablePanel
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 24 Jun 2011, 10:38 AM
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

3 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 29 Jun 2011, 08:51 AM
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.
0
Zubair
Top achievements
Rank 1
answered on 21 Apr 2012, 10:50 AM
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.
0
Ivan Petrov
Telerik team
answered on 23 Apr 2012, 03:20 PM
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 >>
Tags
ScrollablePanel
Asked by
Daniel
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Zubair
Top achievements
Rank 1
Share this question
or