RadRotator OnItemClicked

2 posts, 0 answers
  1. nasrin
    nasrin avatar
    4 posts
    Member since:
    Jul 2011

    Posted 30 Jul 2011 Link to this post

    Hi dear,
    when i click on rotator i see this error: "Microsoft JScript runtime error: Object doesn't support this property or method"
    this is my javascript code for itemclicked:

    function

     

    itemClicked_handler(sender, args)

     

    {

    log(sender.get_id() +

    " item was clicked. Item index is " + args.get_item().get_index());

     

     

    // gets reference to the rotator object

     

     

    var rotator = $find("RadRotator1");

     

     

    var currentIndex=args.get_item().get_index();

     

     

    // Sets currently shown item by its index

     

    rotator.set_currentItemIndex(currentIndex);

    }

    I have 2 rotator, RadRotator1 and RadRotator2. When I click on one of the 4 items of RadRotator2,  RadRotator1 must be initiate with that clicked item of RadRotator2.
  2. nasrin
    nasrin avatar
    4 posts
    Member since:
    Jul 2011

    Posted 30 Jul 2011 Link to this post

    I updated my telerik version to 2010 Q2 and now it works good...
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top