Change Start time and Appointment Slots

5 posts, 0 answers
  1. david
    david avatar
    13 posts
    Member since:
    Dec 2017

    Posted 20 Dec 2017 Link to this post

    Is it possible to change the appointment slots and the start time of the scheduler winforms control ?
  2. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 21 Dec 2017 Link to this post

    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
    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.
  3. david
    david avatar
    13 posts
    Member since:
    Dec 2017

    Posted 21 Dec 2017 in reply to Hristo Link to this post

    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.}
  4. david
    david avatar
    13 posts
    Member since:
    Dec 2017

    Posted 21 Dec 2017 in reply to david Link to this post

    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.
  5. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 22 Dec 2017 Link to this post

    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
    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.
Back to Top