Synchronised scrolling of two instances of Scheduleview control

4 posts, 0 answers
  1. Myles
    Myles avatar
    13 posts
    Member since:
    May 2012

    Posted 02 Jul 2012 Link to this post

    I have two instances of the ScheduleView control on one page ( a bit like this demo:  Is there a way to synchronise the vertial scrolling of both controls e.g. Control 2 automatically scrolls vertically as Control 1 scrolls vertically.  The page I am developing allows the user to compare two sets of daily appointments.  It would be really useful if both calendars scrolled together.


  2. Yana
    Yana avatar
    4547 posts

    Posted 05 Jul 2012 Link to this post

    Hi Myles,

    Thank you for contacting us.

    I am afraid that we're not aware of a way to synchronize the scrolling of two ScheduleView instances. RadScheduleView provides methods only to scroll to certain appointment or slot and to a certain time - ScrollIntoView, ScrollTimeRuler.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
  4. Thomas
    Thomas avatar
    17 posts
    Member since:
    Oct 2012

    Posted 26 Mar 2013 Link to this post

    In case others are looking for a solution to this, I've just tried a solution which seems to work. 2 steps:

    1) Initialize both ScheduleViews to the same date/time:

    // Sync the two timelines initially.
    this.timelineCandidates.CurrentDate = this.timelineJobs.CurrentDate;
    this.timelineCandidates.ScrollTimeRuler(this.timelineJobs.FirstVisibleTime, true);

    2) Keep the two in sync by using the LayoutUpdated event of one of the views (in my case, I have hidden the horizontal scrollbar entirely from the top view, so the bottom view should keep the top view in sync when scrolling):

    private void timelineCandidates_LayoutUpdated(object sender, EventArgs e)
       // This will keep timelineJobs in sync with timelineCandidates.
       timelineJobs.ScrollTimeRuler(timelineCandidates.FirstVisibleTime, true);
  5. Jiri
    Jiri avatar
    40 posts
    Member since:
    Oct 2013

    Posted 15 Dec 2014 in reply to Thomas Link to this post

    Hi Thomas,

    This was my case, works well, thank you!

Back to Top