Simple example : Rotator News

3 posts, 1 answers
  1. lupotana
    lupotana avatar
    73 posts
    Member since:
    Nov 2006

    Posted 12 Aug 2013 Link to this post

    Hi,
    I want use the RadRotator for show the news of a site.

    Populate Control
    DataTable dt = new LuposArt.AssistenzaRullo.News().GetCollection();
    RadRotator1.DataSource = dt;
    RadRotator1.DataBind();


    ASPX Control
    <telerik:RadRotator ID="RadRotator1" runat="server" RotatorType="AutomaticAdvance" ScrollDirection="Up" ScrollDuration="20000" FrameDuration="1000" >
    <ItemTemplate>
    <b><%# DataBinder.Eval(Container.DataItem, "NewsDate")%> - <%# DataBinder.Eval(Container.DataItem, "NewsTitle")%></b><br />
    <div><%# DataBinder.Eval(Container.DataItem, "NewsNote")%>
    </ItemTemplate>
    </telerik:RadRotator>


    If I set the property ScrollDirect="Up" the control show all the news of colelction (3 news)
    If I cut the property ScrollDirect the control work good (scrool right==>left) but is not that I want.
    I want the vertical scroll...

    I don't understand the problem :-(

  2. Answer
    Slav
    Admin
    Slav avatar
    1355 posts

    Posted 15 Aug 2013 Link to this post

    Hi Marco,

    You need to configure the size of the RadRotator and its items according to the infomration in this help article. If you set the size properties of the control so that only one item is displayed, the scrolling will function correctly.

    Such a setup can be examined in the online demo Rotator - Client-side API (the second rotator).

    Regards,
    Slav
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. lupotana
    lupotana avatar
    73 posts
    Member since:
    Nov 2006

    Posted 26 Aug 2013 Link to this post

    I found ... i must set the ItemWidth,ItemHeight,With and Height.
    Now is ok.
    Thanks
Back to Top