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...
Thanks,
Steve
1 Answer, 1 is accepted
0
Fiko
Telerik team
answered on 30 Aug 2010, 10:40 AM
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:
functionOnClientItemClicked(oRotator, args)
{
varcurrentItem = 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:
functionOnClientItemShowing(oRotator, args)
{
args.set_cancel(true);
}
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,
Fiko
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