RAD rotator issue -not scrolling on single Item bind

4 posts, 0 answers
  1. saravanan k
    saravanan k avatar
    88 posts
    Member since:
    Mar 2010

    Posted 12 Aug 2010 Link to this post

    Currenlty my Rad rotator configuration is like:


    <telerik:RadRotator RotatorType="AutomaticAdvance" Skin="Windows7" ID="rotator1" 
    runat="server" Height="253px" Width="500px" WrapFrames="true" ItemWidth="98%" 
    ItemHeight="45px" ScrollDirection="Up"




    <div class="feed"><%#DataBinder.Eval(Container.DataItem) %></div






    And the CSS class is

     overflow: auto
     width: 100%
     height: 100%
     color: #4f6b72
     background-position: center


    I am binding the Rotator to a datasource at the backend.

    Problem is if the bind has only 1 data.The scrolling is not happening.And if I include more items to the rotator,the scroll is happening?

    Is this some default behavior with RAD rotator?

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 17 Aug 2010 Link to this post

    Hi Saravanan

    This is behavior is by design when the control is configured with TotatorType=AutomaticAdvance or SlideShow. In these cases the behavior that you experience is the expected one.

    In addition, I do not recommend using relative values in the configuration of the RadRotator control,. By design, RadRotator supports only fixed values.

    More information about how to configure RadRotator control can be read  in this help article.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Rupesh
    Rupesh avatar
    1 posts
    Member since:
    Dec 2011

    Posted 06 Dec 2011 Link to this post

    Hi ,

          i have face issue on time of re-bind the radrotator from code behind on button click.

    Here is my aspx code:

    <radr:RadRotator ID="thumbRotator" runat="server" Width="572"
                                                                    TransitionType="Scroll" ScrollDirection="Left" UseSmoothScroll="true" FramesToShow="6"  DataSourceID="XmlDataSource1">
                                                                        <div style="text-align: center">
                                                                         <asp:Image ID="Image1" runat="server" ImageUrl='<%# XPath("ImageURL") %>' AlternateText="IMAGE"
                        CustomIDProperty='<%# XPath("id") %>' class="RotatorImage" onclick='showCallbackImage(this)' />
                                                                  <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="Template/wedding/V001/Thumbs.xml"></asp:XmlDataSource>

    In code behind on button click i m changing my xmldatasource

    XmlDataSource1.DataFile = FileName;
    thumbRotator.DataSourceID = "XmlDataSource1";    

    after that radrotator wil be bind but not scroll horizontly. pls solve my issue as soon as possible. If u have not face this issue then send me the image gallery code with runtime xmldatasource change in code behind on  button click.  Please refer the link have image gallery code u want to be change in this...


    Please download the code n change in this code.....
  4. Slav
    Slav avatar
    1359 posts

    Posted 09 Dec 2011 Link to this post

    Hello Rupesh,

    From the code snippet that you have provided and the linked project, I am assuming that you are still using the Classic RadControls for ASP.NET. My suggestion is to upgrade them to the RadControls for ASP.NET AJAX via the approach, described in the following articles:
     - Migration from RadWindow for ASP.NET ("Classic") to RadWindow for ASP.NET AJAX.
     - Migrating From RadDock ASP.NET To ASP.NET AJAX.
    Note that these resources are related to other RadControls, but the principle is the same.
    Also, you may refer to the help article Upgrading RadControls Trial to RadControls Developer license or newer version in order to upgrade to the latest version of the RadControls for ASP.NET AJAX.

    As for rebinding the RadRotator on a click of a particular button, I recommend the online demo Rotator / Image Gallery. The difference is that in your case, in the method  RebindRotator you will have to set your XMLDataSource as a DataSource for the RadRotator, instead of a DataTable.

    I hope that helps.

    the Telerik team
    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 their blog feed now
Back to Top