get_currentItem() doesn't return the item object

1 posts, 0 answers
  1. J-P Minderhoud
    J-P Minderhoud avatar
    13 posts
    Member since:
    Sep 2007

    Posted 15 Sep 2008 Link to this post

    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
Back to Top