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

get_currentItem() doesn't return the item object

0 Answers 44 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
J-P Minderhoud
Top achievements
Rank 1
J-P Minderhoud asked on 15 Sep 2008, 08:56 AM
When querying the rotator for the current item outside a clientside event handler the get_currentItem() returns the DOM element instead of a RadRotatorItem object.

var rotator = <%# radRotator1.ClientID %>.control;
var currentItem = rotator.get_currentItem();

This only gets a reference to the current listitem (LI)

var currentItem = rotator.get_currentItem().control;
var currentItem = rotator.get_currentItem()._item;

These do get references to the RadRotatorItem object

No answers yet. Maybe you can help?

Tags
Rotator
Asked by
J-P Minderhoud
Top achievements
Rank 1
Share this question
or