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

Better documentation for the new rad rotator

2 Answers 99 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Charles Faramarzirad
Top achievements
Rank 1
Charles Faramarzirad asked on 19 Aug 2008, 09:17 PM
Hi ;
i am currently using the newest version of  RadRotator for rad controls for asp.net ajax.  I'm trying to create a webpart that reads from a list in sharepoint 2007.  upon looking at some online documentation on how to do this, all i can find is http://blogs.telerik.com/ToddAnglin/Posts/07-08-27/How_to_Create_RadRotator_Programmatically.aspx  which unfortunately deals with the older version of radrotator.  In particular there is a line  in that document:

void img_DataBinding(object sender, EventArgs e)

{

Image img = sender as Image;

RadRotatorFrame frame = img.NamingContainer

as RadRotatorFrame;

img.ImageUrl = (

string)frame.DataItem;

}

that uses RadRotatorFrame object, that is not present in the current version of RadRotator.  I'm stuck on how to proceed from here.

any help would be appreciated.

thanks
charles

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Aug 2008, 08:17 AM
Hi Charles,

To make this code work with RadRotator for ASP.NET AJAX, you need to replace RadRotatorFrame with RadRotatorItem. FrameTemplate is changed to ItemTemplate as well

e.g.
rr.FrameTemplate = new RadRotatorTemplate();
becomes
rr.ItemTemplate = new RadRotatorTemplate();

I hope this helps. We are working on the new rotator's documentation and it is improved with every update.



Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Charles Faramarzirad
Top achievements
Rank 1
answered on 20 Aug 2008, 08:45 PM
thank you so much. that worked beautifully. 
Tags
Rotator
Asked by
Charles Faramarzirad
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Charles Faramarzirad
Top achievements
Rank 1
Share this question
or