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

Different interval for each child control of the rotator

3 Answers 43 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Yordan
Top achievements
Rank 1
Yordan asked on 28 Apr 2014, 02:29 PM
Hello there,

I have a rotator which rotates different web browser controls. I would like to play a video inside some of the browsers using the HTML5 <video> tag. The problem is that I need to rotate to the next control only when the video has finished playing. Is it possible to set different intervals for each of the rotator's children? If not then is there an event I can handle which occurs when the rotator starts rotating it's content?

Kind Regards.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 30 Apr 2014, 08:20 AM
Hi Yordan,

Thank you for contacting us.

RadRotator​ does not support setting different interval for each child. You can read about how to use RadRotator and the events you may find usable in the following help article:  Working with RadRotator | UI for WinForms Documentation.

Let me know if you have further questions.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Dimo
Top achievements
Rank 1
answered on 18 Mar 2018, 10:58 PM

Hi!

I think this can be maked using Timer object like this:

private void radRotator1_BeginRotate(object sender, BeginRotateEventArgs e)
        {
         
            radRotator1.Stop();
            timer1.Interval = (e.To+1) * 2000;// here we set longer and longer interval for the items with higher index
            timer1.Enabled = true;
            label1.Text = String.Format("Rotating from item {0} to {1} ---> {2}", e.From, e.To, timer1.Interval);
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            radRotator1.Start();
        }

 

I tested it and it  looks to work.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Mar 2018, 09:42 AM
Hello, Dimo,  

Thank you for sharing your solution with the community. I have also updated your Telerik points for community effort.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Rotator
Asked by
Yordan
Top achievements
Rank 1
Answers by
George
Telerik team
Dimo
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or