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

Rad Panorama question

3 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve Austin
Top achievements
Rank 1
Steve Austin asked on 19 Feb 2013, 09:55 AM
Hi I am evaluating radcontrols and wonder if anyone can help

I have a rad panorama control with say 10 panels of tiles on a form with 2 buttons (Prev, Next)

I want the next button to move or scroll the next panel of tiles into view (midddle of panorama control) & the prev button scrols the previous panel of tiles into view

Anyone know how to do this ?

3 Answers, 1 is accepted

Sort by
0
Steve Austin
Top achievements
Rank 1
answered on 20 Feb 2013, 02:03 PM
Cany anybod help ??. anyone!!!

I tried to set the value of the horizontal scrolbar but it doesnt work...

RadPanorama1.HorizontalScroll.Value = 50   doesnt work ?

MsgBox(RadPanorama1.HorizontalScroll.Value) returns zero where ever the scroll bar thumb is ?


Pls help if you know whats wrong :-)

0
Accepted
Steve Austin
Top achievements
Rank 1
answered on 21 Feb 2013, 10:05 AM
I found the answer in case anyone is interested...

Me.RadPanorama1.PanoramaElement.ScrollBar.Value = 100
0
Stefan
Telerik team
answered on 22 Feb 2013, 07:59 AM
Hello Steve,

Thank you for writing.

That is correct, this is one way to do that.

Another possible way is to use the ScrollToItem method to scroll to a specific tile. Here is an example:
void radButton1_Click(object sender, EventArgs e)
{
    TileGroupElement secondGroup = (TileGroupElement)radPanorama1.Groups[1];
    RadTileElement thirdTileInSecondGroup = (RadTileElement)secondGroup.Items[2];
    radPanorama1.PanoramaElement.ScrollToItem(thirdTileInSecondGroup);
}

I hope this helps.
 

Greetings,
Stefan
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
General Discussions
Asked by
Steve Austin
Top achievements
Rank 1
Answers by
Steve Austin
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or