Rad Panorama question

4 posts, 1 answers
  1. Steve Austin
    Steve Austin avatar
    7 posts
    Member since:
    Jan 2010

    Posted 19 Feb 2013 Link to this post

    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 ?
  2. Steve Austin
    Steve Austin avatar
    7 posts
    Member since:
    Jan 2010

    Posted 20 Feb 2013 Link to this post

    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 :-)

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Steve Austin
    Steve Austin avatar
    7 posts
    Member since:
    Jan 2010

    Posted 21 Feb 2013 Link to this post

    I found the answer in case anyone is interested...

    Me.RadPanorama1.PanoramaElement.ScrollBar.Value = 100
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 22 Feb 2013 Link to this post

    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.
Back to Top