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

Stopping on an item

1 Answer 78 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 16 Jan 2009, 03:05 PM
Hi,
My RadRotator control cycles every 4 seconds but I want to be able to stop it when the mouse is over the control. Is this possible, the control is populated dynamically with user controls.

Thanks,
Derek.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 19 Jan 2009, 12:59 PM
Hi Derek,

Thanks for writing.

Indeed you can. You have to just handle the MouseEnter and MouseLeave events and call the radRotator1.Stop() and radRotator1.Start() methods respectively. Here is the code:

private void radRotator1_MouseEnter(object sender, EventArgs e)  
{  
     radRotator1.Stop();  
}  
 
private void radRotator1_MouseLeave(object sender, EventArgs e)  
{  
     radRotator1.Start();  

Please write back if you have other questions.

Greetings,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Rotator
Asked by
Derek
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or