4 Answers, 1 is accepted
0
Hello David,
Thank you for writing.
If by appointment slots you mean the ruler and its start and end times along with the step it uses, you can set its StartScale, EndScale, and RangeFactor properties: https://docs.telerik.com/devtools/winforms/scheduler/fundamentals/scheduler-ruler.
The start date of the entire control can be set by accessing the view you are currently using and by setting its StartDate property. If you need additional assistance please let me know in details what you are trying to accomplish.
I hope this helps. Let me know if you have further questions.
Regards,
Hristo
Progress Telerik
Thank you for writing.
If by appointment slots you mean the ruler and its start and end times along with the step it uses, you can set its StartScale, EndScale, and RangeFactor properties: https://docs.telerik.com/devtools/winforms/scheduler/fundamentals/scheduler-ruler.
The start date of the entire control can be set by accessing the view you are currently using and by setting its StartDate property. If you need additional assistance please let me know in details what you are trying to accomplish.
I hope this helps. Let me know if you have further questions.
Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
david
Top achievements
Rank 1
answered on 21 Dec 2017, 12:19 PM
Ok Thanks I managed to get to this point so far but its not being applied to my scheduler even though I have call my method in form load do I need to link the day view somehow to my instance of the scheduler, also how does one change the appointments slots to be the length of the duration field of the appointment class or should that happen automatically
01.
private
void
ModifyRuler()
02.
{
03.
SchedulerDayView dayView =
this
.sourceNetAppointments.GetDayView();
04.
if
(dayView !=
null
)
05.
{
06.
switch
(dayView.StartDate.Date.DayOfWeek)
07.
{
08.
case
DayOfWeek.Monday:
09.
dayView.RulerStartScale = 8;
10.
dayView.RulerEndScale = 17;
11.
break
;
12.
case
DayOfWeek.Tuesday:
13.
dayView.RulerStartScale = 8;
14.
dayView.RulerEndScale = 18;
15.
dayView.RangeFactor = ScaleRange.HalfHour;
16.
break
;
17.
case
DayOfWeek.Wednesday:
18.
dayView.RulerStartScale = 7;
19.
dayView.RulerEndScale = 16;
20.
dayView.RangeFactor = ScaleRange.HalfHour;
21.
break
;
22.
case
DayOfWeek.Thursday:
23.
dayView.RulerStartScale = 7;
24.
dayView.RulerEndScale = 16;
25.
dayView.RangeFactor = ScaleRange.HalfHour;
26.
break
;
27.
case
DayOfWeek.Friday:
28.
dayView.RulerStartScale = 7;
29.
dayView.RulerEndScale = 16;
30.
dayView.RangeFactor = ScaleRange.HalfHour;
31.
break
;
32.
default
:
33.
break
;
34.
}
35.
}
36.
}
0
david
Top achievements
Rank 1
answered on 21 Dec 2017, 10:37 PM
Got it sorted thanks have one question I have obv a patientId that I want to look up when the patient scheduler is being bound what is my best way of doing that i see it happens in medical demo but I am also using bindsource with linq and cannot figure how you guys do it link the patitent table to display there name in the subject line.
0
Hi David,
Thank you for writing back.
The source code of the medical app demo is available in the installation folder of the control. It usually located here: C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2017\Examples\QuickStart.
In case you keep experiencing the issue please, elaborate on your question and provide me with more details about your actual setup.
I hope this helps. Let me know if you need further assistance.
Regards,
Hristo
Progress Telerik
Thank you for writing back.
The source code of the medical app demo is available in the installation folder of the control. It usually located here: C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2017\Examples\QuickStart.
In case you keep experiencing the issue please, elaborate on your question and provide me with more details about your actual setup.
I hope this helps. Let me know if you need further assistance.
Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.