I am using a radrotator based on the principles of the stock market sample.
The problem is that it is not scriolling in continue. It displays all the items first, then once finished it restarts.
I'd like it to display non-stop, with no empty space.
Looking at the samples, it seems that the frameduration property does the trick, but for some reason it is not there.
Why?
7 Answers, 1 is accepted
0

jpchenot
Top achievements
Rank 2
answered on 15 Sep 2008, 08:20 AM
Can anyone bother answering Telerik people?????
0
Hello Jean-Philippe,
Could you please open a new support ticket and send us a small sample project where we can examine your implementation? Once we have a better view over your exact case, we will do our best to help.
Greetings,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Could you please open a new support ticket and send us a small sample project where we can examine your implementation? Once we have a better view over your exact case, we will do our best to help.
Greetings,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Ben
Top achievements
Rank 1
answered on 13 Feb 2009, 06:22 PM
I'm having this same issue except i can see the frameduration property. I've been playing around with the control for a while but can't seem to figure out why its restarting. The asp code is at top as the server side is below.
<telerik:RadRotator ScrollDirection="Left" FrameDuration="0" |
Width="352px" Height="24px" ScrollDuration="3000" ID="RadRotator1" |
runat="server"> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
<asp:Label ID="lbl" runat="server" Text="Label"> |
</asp:Label> |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
</telerik:RadRotator> |
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
Dim rd1 As SqlClient.SqlDataReader = Data.SqlHelper.ExecuteReader(ConnString, "dbo.Top5ClosedTickets") |
Dim lbl As Label |
lbl = RadRotator1.Controls(0).Controls(1) |
Dim stringlist As List(Of String) = New List(Of String) |
Dim outputstring As String = String.Empty |
While rd1.Read |
Dim MsgStor As New TickerData |
stringlist.Add(rd1.GetInt32(0) & " of " & rd1.GetString(1)) |
End While |
TD.Message = (String.Join(vbCrLf, stringlist.ToArray)) |
rd1.Close() |
RotatorDS.DataBind() |
RadRotator1.DataBind() |
lbl.Text = TD.Message |
0

Ben
Top achievements
Rank 1
answered on 13 Feb 2009, 06:40 PM
Heres a video of what its doing
http://www.youtube.com/watch?v=aFE9uD1UruQ
http://www.youtube.com/watch?v=aFE9uD1UruQ
0
Hello Ben,
Basically the RadRotator control has been designed to rotate more than one item. In your case you have loaded only one item in the rotator control - а string content. When this item is shown the RadRotator does not restart - it just continues showing this item.
As an alternative of your approach for data binding I suggest you to use the approaches described in this help page. Additionally you should set the appropriate values for the Height, ItemHeight, Width, ItemWidth properties.
I hope this helps.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Basically the RadRotator control has been designed to rotate more than one item. In your case you have loaded only one item in the rotator control - а string content. When this item is shown the RadRotator does not restart - it just continues showing this item.
As an alternative of your approach for data binding I suggest you to use the approaches described in this help page. Additionally you should set the appropriate values for the Height, ItemHeight, Width, ItemWidth properties.
I hope this helps.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

Ben
Top achievements
Rank 1
answered on 16 Feb 2009, 02:55 PM
See i made an attempt at that route but it seemed as though it didn't bind. After having it setup just like the example it still doesn't seem to work. Maybe you may see something i don't?
Just to give you an idea as to why i'm doing what i'm doing is because i have several different querys i want to return data in almost 1 string. I had setup the class to have all the different querys conatenated. I assume this should work correct?
Just to give you an idea as to why i'm doing what i'm doing is because i have several different querys i want to return data in almost 1 string. I had setup the class to have all the different querys conatenated. I assume this should work correct?
Public ReadOnly Property TD() As Lines
Get |
Dim o As Object = ViewState("CurrentItem") |
If o Is Nothing Then |
'we dont have one yet so create a new one |
o = New TickerData |
'add it to ViewState |
ViewState("CurrentItem") = o |
End If |
Return DirectCast(o, TickerData) |
End Get |
End Property |
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
Dim rd1 As SqlClient.SqlDataReader = Data.SqlHelper.ExecuteReader(ConnString, "dbo.Top5ClosedTickets") |
Dim rd2 As SqlClient.SqlDataReader = Data.SqlHelper.ExecuteReader(ConnString, "dbo.OpenTicketPrioritys") |
Dim rd3 As SqlClient.SqlDataReader = Data.SqlHelper.ExecuteReader(ConnString, "dbo.ClosedTicketPrioritys") |
Dim sb As New StringBuilder |
Dim sb2 As New StringBuilder |
Dim sb3 As New StringBuilder |
While rd1.Read |
Dim MsgStor As New TickerData |
sb.Append(rd1.GetInt32(0) & " of " & rd1.GetString(1) & " ") |
End While |
TD.AddTickerLines(sb.ToString) |
rd1.Close() |
While rd2.Read |
Dim MsgStor As New TickerData |
sb2.Append(rd2.GetInt32(0) & " of " & rd2.GetInt32(1) & " ") |
End While TD.AddTickerLines(sb2.ToString) |
rd2.Close() |
While rd3.Read |
Dim MsgStor As New TickerData |
sb3.Append(rd3.GetInt32(0) & " of " & rd3.GetInt32(1) & " ") |
End While TD.AddTickerLines(sb3.ToString) |
rd3.Close() |
RotatorDS.DataBind() |
RadRotator1.DataBind() |
End Sub |
<Serializable()> Public Class Lines |
Dim _addTickerLines As List(Of TickerData) = New List(Of TickerData) |
Public Function AddTickerLines(ByVal Message As String) As TickerData |
Dim newline As TickerData = Me.AddTickerLines |
newline.Message = Message |
Return newline |
End Function |
Public Function AddTickerLines() As TickerData |
Dim newline As TickerData = New TickerData |
_addTickerLines.Add(newline) |
Return newline |
End Function |
End Class |
<Serializable()> Public Class TickerData |
Dim _message As String |
Public Property Message() As String |
Get |
Return _message |
End Get |
Set(ByVal value As String) |
_message = value |
End Set |
End Property |
End Class |
<telerik:RadRotator ScrollDirection="Left" FrameDuration="10" |
Width="352px" Height="24px" ScrollDuration="4000" ID="RadRotator1" |
runat="server" AppendDataBoundItems="True" InitialItemIndex="-1" |
DataSourceID="RotatorDS"> |
<ItemTemplate> |
<asp:Label ID="lbl" runat="server" Text='<%# databinder.Eval(container.dataitem,"Message") %>'/> |
</ItemTemplate> |
</telerik:RadRotator> |
<asp:ObjectDataSource ID="RotatorDS" runat="server" |
SelectMethod="AddTickerLines" TypeName="Reptracker.Lines"> |
</asp:ObjectDataSource> |
0
Hello Ben,
I created a simple demo project based on the provided code and I made some changes in it. For your convenience I attached the working project to this thread so you can examine the changes in it.
I hope this helps.
Best wishes,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I created a simple demo project based on the provided code and I made some changes in it. For your convenience I attached the working project to this thread so you can examine the changes in it.
I hope this helps.
Best wishes,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.