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

Error with empty rotator

1 Answer 47 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Nimrod
Top achievements
Rank 1
Nimrod asked on 20 Dec 2008, 07:42 PM
Hello,

I'm using the telerik rotator to show content i bind manualy (using the asp binding syntax).
The problem is that i get JS error when my data source has no element and the rotator is loaded empty.
The error is thrown from the rotator scripts, on a method called "needsShift". It tries to get the size of the "_currentElement", and since this is "undefined" it throws an error at some point.

I guess loading an empty rotator is possible, so maybe i am doing something wrong...
What could be the problem?

Thanks,

Nimrod Ben-Yaakov.

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 23 Dec 2008, 12:33 PM
Hello Nimrod,

I am not quite sure if I understand correctly your setup. Could you please open a new support ticket and send us a small sample project that reproduces your scenario and the error you are talking about? We will check it and do our best to help.


Greetings,
Fiko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Rotator
Asked by
Nimrod
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or