Hi Phill,
Usually the easiest way would be to use a web service for loading dynamically the rotator items, as this functionality is already built-in. For a reference here is the URL to the demo for LoadOnDemand -
http://demos.telerik.com/aspnet-ajax/rotator/examples/loadondemand/defaultcs.aspx.
If you decide to do a custom implementation you will need to recreate the build-in functionality. Here is a draft of the basic things that you will need to implement for this scenario:
- Create a handler that gets the needed image from the XML data file.
- The rotator needs to be set of type FromCode
- The advancing of the rotator should be a custom implementation and should be synchronized with the data loaded from the server.
- In the hander of the Ajax request the following client side API functions should be used: addRotatorItem and after that repaint of the rotator.
Basically implementing a custom solution appears to be more complex that creating a simple web service.
Hope this helps.
All the best,
Nikodim
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and
book your seat for a walk through all the exciting stuff we ship with the new release!