RadRotator Server Side

2 posts, 0 answers
  1. Dick
    Dick avatar
    36 posts
    Member since:
    Sep 2007

    Posted 02 Oct 2009 Link to this post

    I add a RadRotator to my page control collection dynamically. I create a new itemTemplate and assign a datasource.

    dataTable = GetDataSetFromXml().Tables[0];


    RadRotator1.ItemTemplate = new RotatorItemTemplate();

    RadRotator1.DataSource = dataTable;


    RadRotator1.ScrollDirection = RotatorScrollDirection.Up.  


    private class RotatorItemTemplate : ITemplate



    Label literal;

    public void InstantiateIn(Control container)


    literal = new Label();

    literal.DataBinding += literal_DataBinding;



    static void literal_DataBinding(object sender, EventArgs e)


    Label labelControl = (Label)sender;

    RadRotatorItem rotatorItem = (RadRotatorItem)labelControl.NamingContainer;

    string html = (string)((DataRowView)rotatorItem.DataItem)["Html"];

    labelControl.Text = "<table cellpadding=\"0\" cellspacing=\"1\"><tr><td>" + html + "</td></tr></table>";



    When i run my project the rotator shows all the rotatoritems side by side; the rotator doen't scroll.
    The RadScriptManagers is included in the page.

    Can anyone help me solve this problem?

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 06 Oct 2009 Link to this post

    Hello Dick,

    I believe that this Blog post will be of help.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top