Rotator show first item

4 posts, 1 answers
  1. Stephen
    Stephen avatar
    8 posts
    Member since:
    May 2005

    Posted 05 Sep 2008 Link to this post

    Hi guys,

    I've been playing around the rotator and now comes across this problem.

    After I have populated the rad rotator from arraylist, how could I choose so that the first item to be shown is item #3 from the arraylist?

    This is how I populate the rotator... I'm rotating number 0 to 4

    ArrayList myList = new ArrayList();
    RadRotator myRotator = new RadRotator();

    for(int i=0; i<5; i++)
    {
        myList.Add(i.ToString());
    }

    myRotator.DataSource = myList;
    myRotator.DataBind();

    and it will do the rotation from 0 until 4. I would like to be able to control the starting item via query string. So if I get the value of 3 from the query string, the rotator will at first show number 3.

    Thanks in advance.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Sep 2008 Link to this post

    Hello Stephen,

    You need to set the InitialItemIndex property - It specifies the index of the item, which will be shown first when the rotator loads.



    All the best,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stephen
    Stephen avatar
    8 posts
    Member since:
    May 2005

    Posted 05 Sep 2008 Link to this post

    Hi Georgi,

    Thanks for the reply. My apologies, I forgot to mention that I think I'm using an older version of the rotator.

    I'm using v2.7.6.0 for ASP.NET, is there any chance to use that feature without having to upgrade to ASP.NET AJAX?

    I'm still using .NET framework 1.1 =(

    Thanks!
  5. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Sep 2008 Link to this post

    Hi Stephen,

    I am afraid RadRotator for ASP.NET does not support this functionality. When we created RadRotator for ASP.NET AJAX, we completely rewrote its logic so features like the one that you need are possible now.



    Regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top