This is a migrated thread and some comments may be shown as answers.

Editing the time

5 Answers 143 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Yesaya
Top achievements
Rank 1
Yesaya asked on 27 Jan 2010, 08:00 AM
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...

5 Answers, 1 is accepted

Sort by
0
mrdcpwns
Top achievements
Rank 1
answered on 27 Jan 2010, 09:18 AM
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


0
Yesaya
Top achievements
Rank 1
answered on 27 Jan 2010, 10:09 AM
Ok,thanks a lot..I'll try it.. ^_^
0
Boyko Markov
Telerik team
answered on 27 Jan 2010, 01:44 PM
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.
0
Yesaya
Top achievements
Rank 1
answered on 27 Jan 2010, 04:00 PM
Hi Boyko,are there any examples how to use it?Thanks...
0
Boyko Markov
Telerik team
answered on 02 Feb 2010, 06:51 AM
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.
Tags
Scheduler and Reminder
Asked by
Yesaya
Top achievements
Rank 1
Answers by
mrdcpwns
Top achievements
Rank 1
Yesaya
Top achievements
Rank 1
Boyko Markov
Telerik team
Share this question
or