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

Navigation and current item

2 Answers 93 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Eduardo Fukugava
Top achievements
Rank 1
Eduardo Fukugava asked on 08 Jul 2009, 08:09 PM
Hello all!
Is there a way to navigate on the rotator to specific items?
I'm putting five buttons (1,2,3,4,5) on my page and would like each one, on click, to rotate the images to the specific index (1,2,3,4 or 5).

And how do I know the current item index of the rotator?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 10 Jul 2009, 03:24 PM
Hello Eduardo,

For the time being the RadRotor control does not provide a client-side features that allow the next shown item to be set by its index. We already plan to add this feature in one of the next releases of the control and it is already in our ToDo list.
For now, you could use InitialItemindex - server property in order to achieve the same result.  I recommend you use AJAX requests in order to avoid page flickering in this scenario. For your convenience I have prepared a sample that shows this approach and attached it to this thread.

I hope this helps. 

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eduardo Fukugava
Top achievements
Rank 1
answered on 10 Jul 2009, 03:38 PM
Thanks!
I'll sure study your solution.
By the time being, since my rotator is limited to 5 items, I've created a javascript function that loops through the "pages" of the rotator until it reaches the requested one.
It's working pretty smoothly. :D
Tags
Rotator
Asked by
Eduardo Fukugava
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Eduardo Fukugava
Top achievements
Rank 1
Share this question
or