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

Message: 'this._getAnimationQuery()' is null or not an object

4 Answers 59 Views
Rotator
This is a migrated thread and some comments may be shown as answers.

4 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 08 Nov 2010, 08:10 AM
Hello Randy Weaver,
I tried to reproduce the problem with our online demo (http://demos.telerik.com/aspnet-ajax/rotator/examples/carouselmode/defaultcs.aspx), but to no avail. My very first thought, was that there is a problem in case there are no items in the rotator. However, removing the items from the demo did not lead to the JS error that you get as well.

I can recall that we had a problem with a rotator with no items in a previous version of the Telerik.Web.UI assembly, but you have specified that you are using the latest version. That is why, I will need some additional information in order to help you. Could you please specify the exact version of the assembly that you use, the browser and the browser version, the number of items you have in the rotators and send us your rotator definition. It will be best, if you open a formal support ticket and send us a running test project that demonstrates the error.

All the best,
Tsvetie
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
Randy Weaver
Top achievements
Rank 1
answered on 08 Nov 2010, 03:18 PM
Can you tell me what is required to implement this control?

Here's the prep...

1. I put the RadScriptManager control on the master page.

2. I used the "smart" thing to add the web.config settings to the project.

3. Added the RadRotator to the child page.

I have 4 items on the screen but they don't appear to look like a "carousel"... they look like they are tiled.

Anyway... am I missing a "step" in setting this up?  where is the "_getAnimationQuery()" supposed to be?  what loads this function?

-Randy
0
Randy Weaver
Top achievements
Rank 1
answered on 09 Nov 2010, 01:00 PM
Okay... I got past the "_getAnimationQuery()" problem by reinstalling the latest version but I have a new problem now.

On initial load, the items appear tiled (not carousel... and the buttons on the left and right don't appear to do anything).  however, once I click BACK in my browser then FORWARD, they appear & work correctly.

Is this a javascript timing issue?

My script manager control is in my master page and my RadRotator is in a usercontrol that lives on a content page.

I'm setting the datasource and binding in the page_load event of the user control.

Thanks,
Randy
0
Tsvetie
Telerik team
answered on 10 Nov 2010, 10:54 AM
Hi Randy Weaver,
Your setup is correct. Could you please check for JS errors. In case there is an error on your page, it will prevent the carousel functionality of the rotator from working. As you can see on our carousel demo - http://demos.telerik.com/aspnet-ajax/rotator/examples/carouselmode/defaultcs.aspx, we are using the same approach as you and the demo works as expected.

In case my assumption is not correct, please open a formal ticket and send us your code, so that we can check what causes the described problem.

Sincerely yours,
Tsvetie
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
Tags
Rotator
Asked by
Randy Weaver
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Randy Weaver
Top achievements
Rank 1
Share this question
or