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

Radscrollable Panel

3 Answers 162 Views
ScrollablePanel
This is a migrated thread and some comments may be shown as answers.
Amin
Top achievements
Rank 1
Amin asked on 07 Feb 2012, 10:53 PM
Hi

One
Is there any way I can get the radscrollable panel to do the following three requirements programatically in vb.net
1 - Scroll to the top (of the panel)
2 - Scroll to the middle (of the panel)
3 - scroll to the end (of the panel)

Ideally I want to see a quick animation of the scroll taking place till it reaches the either point.

Two
Can you tell me how the following works (what it does):
Me.RadScrollablePanel1.VerticalScrollbar.PerformScrollTo
(I tried using it as follows: Me.RadScrollablePanel1.VerticalScrollbar.PerformScrollTo(new Point(0,200)) but it did nothing)


Three
Is there any link for more documentation on this control.


3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 08 Feb 2012, 02:58 PM
Hi Amin,

Can you give more information about what you want to do? It sounds like something different might be suitable for your requirements. If you want moving items, you may want to take a look at the RadCarousel instead.

Hope that helps
Richard
0
Amin
Top achievements
Rank 1
answered on 08 Feb 2012, 07:08 PM
I have placed an equivalent of a picture box into a radscrollable panel.
What I need to do is programatically (eg press button1) it must move to a particular position (in this case the top) on the pic - that is move the scrollablepanel to that point.
Press Button2 and it will move to position2 of the panel
and press button3 it will move the bottom

The uses are multiple - this is just an easy example to explain with what I need done.

Ideally, there must be a scrolling from point1 to 2 etc.

If scrolling is not possible, the least I need to do is to get to that point.

Many thanks
0
Boryana
Telerik team
answered on 10 Feb 2012, 06:25 PM
Hello,

Thank you for writing.

Please note that the PerformScrollTo method requires the parameter to be in screen coordinates. In this sense, the point (0,200) will indeed not move the scrollbar. I have prepared a sample project that demonstrates how to use the method. Additionally, I can suggest you to use the PerformLargeIncrement() method.

I hope you find my answer useful. Let me know if you have further questions.

Greetings,
Boryana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ScrollablePanel
Asked by
Amin
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Amin
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or