Editing the time

6 posts, 0 answers
  1. Yesaya
    Yesaya avatar
    10 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

    Hi all,i wonder how to edit the time row in scheduler..By default i see that it was only half hour a row.Is it possible to divide it more than that?I want to create like this

    image

    Thanks a lot...
  2. mrdcpwns
    mrdcpwns avatar
    16 posts
    Member since:
    Dec 2009

    Posted 27 Jan 2010 Link to this post

    You just need to set the RangeFactor of your RadScheduler.

    Example:




    RadScheduler1.GetDayView.RangeFactor = Telerik.Wincontrols.UI.ScaleRange.QuarterHour

    'or simply
    'RadScheduler1.GetDayView.RangeFactor = ScaleRange.QuarterHour
    'if you've already Imported Telerik.Wincontrols.UI

    'ScaleRange can be:
     'FiveMinutes
     'SixMinutes
     'TenMinutes
     'QuarterHour
     'HalfHour
     'Hour


  3. Yesaya
    Yesaya avatar
    10 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

    Ok,thanks a lot..I'll try it.. ^_^
  4. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 27 Jan 2010 Link to this post

    Hi guys,

    Thank you for contacting us. That's right, you should use RangeFactor property of SchedulerDayView when you need to change the scaling. I suggest you also check whether GetDayView() method returns null before calling it, as the return value could be null when the Scheduler ActiveViewType is not DayView. Please contact us again, if you have any other questions.

    Kind regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Yesaya
    Yesaya avatar
    10 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

    Hi Boyko,are there any examples how to use it?Thanks...
  6. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 02 Feb 2010 Link to this post

    Hi yesaya handoyo,

    In order to change RadScheduler's scaling, you can use the sample code below:
    Dim schedulerDayView As SchedulerDayView = Me.radScheduler.GetDayView()
    If schedulerDayView <> Nothing Then
        schedulerDayView.RangeFactor = ScaleRange.TenMinutes
    End If

    I suggest that you also take a look at the RadScheduler control's samples in our Examples project, as there is a lot of sample code which will help you to learn how to use the control's features. 

    Please contact us again, if you have any additional questions.

    Kind regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top