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:
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.