Get frame index on the client-side

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    12 posts
    Member since:
    Nov 2008

    Posted 05 Jan 2009 Link to this post

    On my rotator control I'm using the OnClientItemClicked event.  I want to be able to hook the index of the item I click on.  How do I do this?  All I find as documentation for client-side programming is: http://www.telerik.com/help/aspnet-ajax/rotator-clientside-api.html, but this doesn't help.

    Thank you in advance for help/assistance,
    Stephen
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 06 Jan 2009 Link to this post

    Hello Stephen,

    You can get the index of the clicked item like this:

    function OnItemClicked(sender, arg) 
        var clickedItem= arg.get_item(); 
        alert(" Current item's index is : " + clickedItem.get_index()); 

    Note that the index of  first item is  0.

    I hope this helps.

    Greetings,
    Fiko
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top