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

RAD rotator issue -not scrolling on single Item bind

3 Answers 93 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
saravanan k
Top achievements
Rank 1
saravanan k asked on 12 Aug 2010, 06:43 AM
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"

<ItemTemplate>

 

 

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

 

 

 

</ItemTemplate>

</telerik:RadRotator>

And the CSS class is

.feed 
{
 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?


3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 17 Aug 2010, 10:27 AM
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.

Greetings,
Fiko
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
0
Rupesh
Top achievements
Rank 1
answered on 06 Dec 2011, 04:41 PM
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">
                                                                <FrameTemplate>
                                                                    <div style="text-align: center">
                                                                     <asp:Image ID="Image1" runat="server" ImageUrl='<%# XPath("ImageURL") %>' AlternateText="IMAGE"
                    CustomIDProperty='<%# XPath("id") %>' class="RotatorImage" onclick='showCallbackImage(this)' />
                                                                    </div>
                                                                </FrameTemplate>
                                                            </radr:RadRotator>                                                          
                                                              <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...

http://www.telerik.com/ClientsFiles/036043_ticket_57131.zip

Please download the code n change in this code.....
0
Slav
Telerik team
answered on 09 Dec 2011, 10:50 AM
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.

Regards,
Slav
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
Tags
Rotator
Asked by
saravanan k
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Rupesh
Top achievements
Rank 1
Slav
Telerik team
Share this question
or