2 posts, 0 answers
  1. Steve
    Steve avatar
    1888 posts
    Member since:
    Dec 2008

    Posted 25 Aug 2010 Link to this post

    Is there anywhere I can get the expaneded ClientSide documentation for the Rotator?  I need to know what vars\args are available in the events...

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 30 Aug 2010 Link to this post

    Hi Steve,

    All event arguments contain reference to the item (a MS AJAX object of type Telerik.Web.UI.RadRotatorItem) associated with the event (click, mouseover, showing, etc.). You can get reference to the item using this getter:
    function OnClientItemClicked(oRotator, args)
        var currentItem = args.get_item();

    Only the events that end with -ing (OnClientShowing and OnClientClicking) can be canceled and their arguments have a method set_cancel, which accepts a Boolean value indicating whether the event should be canceled or not:
    function OnClientItemShowing(oRotator, args)

    The RadRotatorItem has two valuable properties - index and element. You can get them using these getters:
    • rotatorItem.get_index() which return the index (zero based) of the item in the RadRotator's Items collection.
    • rotatorItem.get_element() - return the DOM element associated with the Telerik.Web.UI.RadRotatorItem object. This can be used in order to find an element inside the RadRotator's ItemTemplate on the client (please check this scenario).

    I hope this helps.

    All the best,
    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
Back to Top