ScheduleView Day view scrolling to current time

10 posts, 0 answers
  1. Sami
    Sami avatar
    8 posts
    Member since:
    Nov 2010

    Posted 06 Apr 2011 Link to this post

    Hi,

    Is it possible to scroll current time automatically in day view?

    Example: current time is 13:00 and business hours start at 6:00 and ends 16:00. How to scroll automatically to 13:00?

    This is my related question for Scheduler control. It works but how to get same functionality for ScheduleView?
    http://www.telerik.com/community/forums/silverlight/scheduler/scheduler-day-view-scrolling-to-current-time.aspx

    Regards,
    Sami
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 06 Apr 2011 Link to this post

    Hi Sami,

    RadScheduleView has a method named ScrollTimeRuler(TimeSpan, bool), that should be used in such scenarios. The first parameter specifies the time which should be scrolled to, the second specifies whether to scroll that time to the top/left, or not.

    All the best,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Jim
    Jim avatar
    8 posts
    Member since:
    Feb 2011

    Posted 15 Apr 2011 Link to this post

    I too am trying to center time window to current time in Timeline View. I cannot find the ScrollTimeRuler Method in the 3rd quarter 2010 release. Where do I find it?
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Apr 2011 Link to this post

    Hello Jim,

    The method is not visible in the intellisense because it might be changed in the future.

    Kind regards,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Peter
    Peter avatar
    8 posts
    Member since:
    Feb 2011

    Posted 22 Apr 2011 Link to this post

    How can I get the scrollviewer to persister the VerticalOffset?

    Thank you.
  7. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Apr 2011 Link to this post

    Hi Peter,

    We are working on automatic scroll position persisting right now and I would recommend waiting for our solution. Currently we are intentionally resetting the scroll position in some situations and a workaround will not be perfect.

    All the best,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. loowool
    loowool avatar
    60 posts
    Member since:
    Sep 2006

    Posted 14 Jun 2011 Link to this post

    Hi Valeri,

    Any Updates on this Issue?

    Salah A. Malaeb
    TeknoBuild
  9. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 14 Jun 2011 Link to this post

    Hi Salah,

    The automatic keeping of the scroll position is already available, please try the latest internal build.

    Kind regards,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. loowool
    loowool avatar
    60 posts
    Member since:
    Sep 2006

    Posted 23 Jul 2011 Link to this post

    Hi Valeri,

    Let me explain the situation we have:

    Scheduler is in Week View, hours Displayed from 0 to 23 (all 24 hours), but since not all hours can fit vertically,a vertical scrollbar is displayed. When the scheduler loads, it starts displaying slots from Hour 0AM, but since Working hours that contain valid slots are usually 8AM to 6PM, the user has to manually scroll to his/her time slots.

    When the user changes weeks (i.e. navigates to a next or previous week), we'd like the scheduler to keep the same vertical position that was active in the current week. Instead the scheduler resets the vertical scroll position to the top.

    How do we tell the scheduler to maintain the vertical scroll position on week change?

    Note that we're using the following delegate to be called when the user changes weeks:

    this.VisibleRangeChangedCommand = new DelegateCommand(p => this.AssignSpecialSlots((IDateSpan)p));

    Thanks as always
    Salah A. Malaeb
    TeknoBuild
  11. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Jul 2011 Link to this post

    Hello Salah,

    The scroll position should be kept automatically, unless you set a property that causes reset - such properties are ActiveViewDefinition, ResourceTypesSource, etc. You need to use version larger than 2011.1.62*.


    Greetings,
    Valeri Hristov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
DevCraft banner