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

RadRotator OnItemClicked

1 Answer 47 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
nasrin
Top achievements
Rank 1
nasrin asked on 30 Jul 2011, 06:59 AM
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.

1 Answer, 1 is accepted

Sort by
0
nasrin
Top achievements
Rank 1
answered on 30 Jul 2011, 11:48 AM
I updated my telerik version to 2010 Q2 and now it works good...
Tags
Rotator
Asked by
nasrin
Top achievements
Rank 1
Answers by
nasrin
Top achievements
Rank 1
Share this question
or