event fires every time when the RadRotator
is loaded and respectively the function that is attached to it will
be executed as well. By default when you click on a rotator's item a
post back is triggered and the page is reloaded.
You can change this
behavior by attaching a function to the OnClientItemClicking
event of the RadRotator control and use the set_cancel()
function of the argument that was passed with parameter "true
In this function you can get reference to the currently clicked item of
the RadRotator control as well (you can observe the steps in the
attached demo project).
I am not quite sure that I understood
your second question "I also want it to scroll in *all* directions",
but basically you can change the ScrollDirection
property by using set_scrollDirection()
function of the RadRotator object. Please note that you have to do the following operations :
- change scroll direction to Right or Left if you load the RadRotator control with the property ScrollDirection set to "Up" or "Down".
- change scroll direction to Up or Down if you load the RadRotator
control with the property ScrollDirection set to "Left" or "Right" ( by default ScrollDirection property has value "Left")
I hope this helps.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.