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

Rotator show first item

3 Answers 43 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 05 Sep 2008, 06:41 AM
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.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Sep 2008, 08:46 AM
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.
0
Stephen
Top achievements
Rank 1
answered on 05 Sep 2008, 08:59 AM
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!
0
Accepted
Georgi Tunev
Telerik team
answered on 05 Sep 2008, 09:19 AM
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.
Tags
Rotator
Asked by
Stephen
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or