Different interval for each child control of the rotator

4 posts, 0 answers
  1. Yordan
    Yordan avatar
    1 posts
    Member since:
    Oct 2013

    Posted 28 Apr 2014 Link to this post

    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.

  2. George
    Admin
    George avatar
    500 posts

    Posted 30 Apr 2014 Link to this post

    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.
     
  3. Dimo
    Dimo avatar
    26 posts
    Member since:
    Nov 2008

    Posted 18 Mar 2018 in reply to George Link to this post

    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.

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3993 posts

    Posted 20 Mar 2018 Link to this post

    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.
Back to Top