Rad Scheduler scroll position

12 posts, 1 answers
  1. santosh
    santosh avatar
    19 posts
    Member since:
    Apr 2008

    Posted 01 Aug 2009 Link to this post

    Is there a way to focus the scroll position of the scheculer to the current time of the day.

    For example if the day view is set for 24 hour format(0-23 hours) and the current time is 5pm, Is it possible to set the scroll position of the scheduler to 1700 hrs than 0hr. 
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 06 Aug 2009 Link to this post

    Hi santosh,

    We do not have this feature built-in in RadScheduler.
    However here is a code snippet which demonstrates how to scroll up or down in a day view:

    RadScheduler scheduler = this.radScheduler;  
    SchedulerDayViewElement dayViewElement = (SchedulerDayViewElement)scheduler.SchedulerElement.ViewElement;  
    dayViewElement.DataAreaElement.Table.Scroll(false); 

    We call the Scroll method with parameter false which means that the view will scroll one position down. If we call the method with parameter true then the view will scroll one position up.

    Best wishes,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. santosh
    santosh avatar
    19 posts
    Member since:
    Apr 2008

    Posted 11 Aug 2009 Link to this post

    thanks Boyko

    That did the trick . Can I achieve the same in week view. If yes can you provide me with the code snippet.
  5. Answer
    Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 13 Aug 2009 Link to this post

    Hello santosh,

    You can use the same snippet for DayView, WeekView and WorkWeekView as we use the same visual element in these scheduler views.

    Please write me back if you need more information.

    Best wishes,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Satyendra Tripathi
    Satyendra Tripathi avatar
    5 posts
    Member since:
    Mar 2010

    Posted 23 Jun 2010 Link to this post

    Hi,

    How can we implement this in case of web (asp.net) application?

    Regards,
    Ratnesh
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 25 Jun 2010 Link to this post

    Hello Satyendra,

    Please, see this kb article:
    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-scroll-into-view-a-specific-time-slot-on-initial-page-load.aspx

    Greetings,
    Peter
    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. Robert
    Robert avatar
    4 posts
    Member since:
    Apr 2008

    Posted 02 Mar 2011 Link to this post

    Hi everyone,

    I am experiencing problems when trying to scroll to certain time when I set the RulerScaleSize property of the day/week view.
    In my case I set the RangeFactor to 5minutes and RulerScaleSize to 7 and scrolling does not work ( I have tried Scroll(bool), ScrollToTime(Timespan) and ScrollToWorkHours() - nothing works). I am firing this code on ActiveViewChanged.
    If I comment the changing of RulerScaleSize scrolling works fine.
    Is there a workaround?

    Best regards
    Robert
  9. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Mar 2011 Link to this post

    Hi Robert,

    Can you specify which control do you use? I don't recognize those properties as being of RadScheduler.


    All the best,
    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  10. Robert
    Robert avatar
    4 posts
    Member since:
    Apr 2008

    Posted 03 Mar 2011 Link to this post

    Hi Peter.

    I can give you a simple example of my code:
    private void Scheduler_ActiveViewChanged(object sender, SchedulerViewChangedEventArgs e)
    {
        if (e.NewView.ViewType != e.OldView.ViewType && e.NewView.ViewType == SchedulerViewType.Day)
      {
          (e.NewView as SchedulerDayView).RangeFactor = ScaleRange.FiveMinutes;
          (e.NewView as SchedulerDayView).RulerScaleSize = 7;
     
          SchedulerDayViewElement dayViewElement = (SchedulerDayViewElement)Scheduler.SchedulerElement.ViewElement;
          dayViewElement.DataAreaElement.Table.ScrollToTime(new TimeSpan(8, 0, 0));
        }
    }

    I have tried this with the latest version of controls and I am experiencing the same problems. The scrolling does not execute.

    Regards
    Robert
  11. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Mar 2011 Link to this post

    Hello Robert,

    If you use RadScheduler for WinForms, please post your question in the respective forum -
    http://www.telerik.com/community/forums/winforms/scheduler.aspx


    Greetings,
    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  12. Robert
    Robert avatar
    4 posts
    Member since:
    Apr 2008

    Posted 03 Mar 2011 Link to this post

    Greetings, Peter!

    I am sorry but I don't quite follow ...
    I am using RadScheduler for Winforms, but this IS winforms forum :
     http://www.telerik.com/community/forums/winforms/scheduler/rad-scheduler-scroll-position.aspx
    My question is a follow-up on the Boyko's code snippet (second post), so I thought this was the right place to ask...

    Should I open another topic anyway?

    Regards

    Robert
  13. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Mar 2011 Link to this post

    Hi Robert,

    Indeed this forum was started for WinForms, but then it was changed to ASP.NET AJAX by one of our admins. I am converting it back to WinForms and our colleagues from that team will handle it.

    Please, accept our apologies for the misunderstanding.

    Best wishes,

    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top
UI for WinForms is Visual Studio 2017 Ready