Better documentation for the new rad rotator

3 posts, 0 answers
  1. Charles Faramarzirad
    Charles Faramarzirad avatar
    14 posts
    Member since:
    May 2008

    Posted 19 Aug 2008 Link to this post

    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. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 20 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Charles Faramarzirad
    Charles Faramarzirad avatar
    14 posts
    Member since:
    May 2008

    Posted 20 Aug 2008 Link to this post

    thank you so much. that worked beautifully. 
Back to Top