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

asynchronous loading of items in radRotator

1 Answer 51 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
sharanya
Top achievements
Rank 1
sharanya asked on 28 Jun 2011, 05:38 AM
Hi,

it is possible to trigger the asynchronous loading of items in radRotator in client side javascript when a swipe occurs so that there is always 3 Images pre-loaded to the left or the right.

Example:

On first load : Image 0, 1 and 2 are loaded.

On moving right to image 1 ,  trigger the asynchronous retrieval of position 3

Please let me know how I can achieve this.

thanks,
Sharanya

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 28 Jun 2011, 05:19 PM
Hi Sharanya,

You can use the addRotatorItem method of RadRotator client-side object to populate the items collection. Keep in mind that the new item will not exist in the rotator's items collection on the server. You can find more information about this method in the documentation article below:
http://www.telerik.com/help/aspnet-ajax/rotator-client-side-api.html

For your convenience I added a sample project, demonstrating preloading of RadRotator's items on its client-side event OnClientItemShowing via the method mentioned above.

Greetings,
Slav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Rotator
Asked by
sharanya
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or