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

Simple example : Rotator News

2 Answers 121 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
lupotana
Top achievements
Rank 1
lupotana asked on 12 Aug 2013, 01:17 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 15 Aug 2013, 10:01 AM
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.
0
lupotana
Top achievements
Rank 1
answered on 27 Aug 2013, 01:43 AM
I found ... i must set the ItemWidth,ItemHeight,With and Height.
Now is ok.
Thanks
Tags
Rotator
Asked by
lupotana
Top achievements
Rank 1
Answers by
Slav
Telerik team
lupotana
Top achievements
Rank 1
Share this question
or