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

RadRotator not working after ajax request

4 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 10 Jan 2014, 09:57 PM
Hi Guys,

I have a rad rotator in a rad notification. This rad notification is included in a panel which can be updated after an ajax request. If so, the radrotator is not displaying the content anymore.
i saw that 
http://www.telerik.com/help/aspnet-ajax/rotator-coverflow-animation-and-ajax.html
saying you need to register the script in the code behind.

I have not been able to translate my parameters to have a persistent radrotator. Could you please help me? here is my radrotator:
<telerik:RadRotator ID="rrTest" runat="server" WrapFrames="true"
                                        Width="708" height="17" ScrollDirection="Left" ScrollDuration="19000"
                                        FrameDuration="0" RotatorType="AutomaticAdvance" ItemHeight="15px" ItemWidth="1450" >
                                        <ItemTemplate>
                                            <div style="">
                                                <% Response.Write(mystring); %>
                                            </div>
                                        </ItemTemplate>
                                    </telerik:RadRotator>


Thank you
Gregory

4 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 15 Jan 2014, 11:45 AM
Hello Greg,

The help article you linked addresses a scenario, in which the animation of the CoverFlow RadRotator (you can check it in this online demo) is lost after an AJAX request. Nevertheless, you are using a rotator in AutomaticAdvance mode (RotatorType="AutomaticAdvance"), so your case is different.

The information is not enough to determine what could be causing the disappearance of the rotator, however there are a few things you could try.

You can check whether the rotator is still data-bound after you update it via the AJAX request. If its data source is lost, the rotator will appear blank.

Also, it is possible that the rotator is displayed incorrectly if it is placed in a container that is initially invisible. In this case you can retrieve the client-side object of the rotator by calling the $find function, passing the client id of the rotator as a parameter and then invoking the function repaint() of the returned object. Note that this should be done when the rotator becomes visible one the page.

If you are still having difficulties after trying the suggestions above, please send a simple, fully runnable project that isolates the problem and shows your setup so that I can inspect it locally and provide a more to the point answer.

Regards,
Slav
Telerik
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 the blog feed now.
0
Greg
Top achievements
Rank 1
answered on 20 Feb 2014, 03:32 PM
Hi Slav,

Sorry for the delay. Two things were happening in my scenario. First the data source was lost as you were saying also. Fixing this, my radrotator was still having issues. I put it outside the radNotification and it finally work fine.

Thanks for the tips.
Greg
0
Danail Vasilev
Telerik team
answered on 25 Feb 2014, 12:33 PM
Hello Greg,

I have tried to reproduce the mentioned issue but to no avail. You can watch the short video test in the attached archive and then tell me what I am missing.

If you are not using the latest official version of Telerik UI - 2013.3.1324, does upgrading to it resolve the issue?

If the above step, however, is not helpful could you please try to reproduce the issue with the attached VS example and then tell us what changes you have made, so that we can make an investigation locally? Could you also tell us whether the issue is browser specific and if so which is the browser and its version?


Regards,
Danail Vasilev
Telerik
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Greg
Top achievements
Rank 1
answered on 25 Feb 2014, 04:59 PM
Hello Danail,

Thank you for the time you spent on my issue. It is now working. Here are all the actions I did.
I removed the rotator from the panel. 
Instead of
<% Response.Write(mystring); %>
I put
<%# Container.DataItem %>
and in the cs file, I added
myRotator.DataSource = mystring;


Greg


myRotator.DataSource = mystring;

Tags
General Discussions
Asked by
Greg
Top achievements
Rank 1
Answers by
Slav
Telerik team
Greg
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or