radrotator cannot scroll left and right

2 posts, 0 answers
  1. ying
    ying avatar
    27 posts
    Member since:
    May 2011

    Posted 09 Aug 2011 Link to this post

    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
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 11 Aug 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top