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

radrotator cannot scroll left and right

1 Answer 93 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
ying
Top achievements
Rank 1
ying asked on 09 Aug 2011, 09:56 AM
The code below 
<
telerik:RadRotator ID="dtMessage" runat="server"
             FrameDuration="1" Height="55px" ItemHeight="55px" Width="100%" ItemWidth="100%">
                <ItemTemplate>
                    <asp:Label ID="lblMsg" runat="server" Width="100%"></asp:Label><br />
                    <asp:Label ID="lblMsg2" runat="server" Width="100%"></asp:Label>
                    <asp:HiddenField ID="hldMsg1" Value ='<%# Eval("Msg1") %>' runat="server" />
                    <asp:HiddenField ID="hldMsg2" Value ='<%# Eval("Msg2") %>' runat="server" />
                     
                    <asp:HiddenField ID="hldFontFace" Value ='<%# Eval("FontFace") %>' runat="server" />
                    <asp:HiddenField ID="hldFontSize" Value ='<%# Eval("FontSize") %>' runat="server" />
                    <asp:HiddenField ID="hldFontColor" Value ='<%# Eval("FontColor") %>' runat="server" />
                    <asp:HiddenField ID="hldDirection" Value ='<%# Eval("MessageDirection") %>' runat="server" />
                </ItemTemplate>
            </telerik:RadRotator>

                        If strDirection = "Down" Then
                            dtMessage.ScrollDirection = RotatorScrollDirection.Down
                        ElseIf strDirection = "Up" Then
                            dtMessage.ScrollDirection = RotatorScrollDirection.Up
                        ElseIf strDirection = "Left" Then
                            dtMessage.ScrollDirection = RotatorScrollDirection.Left
                            dtMessage.RotatorType = RotatorType.SlideShow
                        Else
                            dtMessage.ScrollDirection = RotatorScrollDirection.Right
                        End If


                        dtMessage.ScrollDuration = intMsgSpeed * 1000

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 11 Aug 2011, 01:13 PM
Hi Ying,

After examining your code, I have come up with the following suggestions:
1. The ScrollDirection has no effect if the new items are displayed using a transition effect, which is examined when the RotatorType of RadSlider is set to SlideShow. This is the case with your scenario, when the direction is set to Left.
2. As the RadRotator control doesn't support setting its size in percents, please use pixels instead. It is always a good practice to specify exact width and height for the control and its items. You can also check the following help article, which contains some useful advices for configuring RadRotator: http://www.telerik.com/help/aspnet-ajax/rotator-configuration.html.
3. I noticed that you have set the FrameDuration property of RadRotator with value 1, which will change the items very fast in SlideShow mode. You may consider modifying it with higher value to achieve better transition effect.

Note that at the current circumstances I am mostly guessing as to what your setup is. If the information listed above doesn't help in resolving the issue, please provide detailed description of your setup as well as specific steps to reproduce the problem so that we can suggest a more to the point answer.

Greetings,
Slav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Rotator
Asked by
ying
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or