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

Scheduler 15 mins time slots show this on ruler.

0 Answers 23 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 24 Dec 2017, 07:00 PM

While this does work to sort out start time and end time I need the slots to show 15 mins like the old app does 

Old App Screen shot Does anybody no how to get the ticks not only to display hours but also the 15 mins segments as shown. Must be able to do this.

 

private void CustomizeCurrentSchedulerView()
{
    this.sourceNetAppointments.FocusedDate = currentDate;
    SchedulerDayViewBase dayViewBase = null;
    if (this.sourceNetAppointments.ActiveViewType == SchedulerViewType.Day)
    {
        dayViewBase = this.sourceNetAppointments.GetDayView();
    }
    else if (this.sourceNetAppointments.ActiveViewType == SchedulerViewType.MultiDay)
    {
        dayViewBase = this.sourceNetAppointments.GetMultiDayView();
    }
    else if (this.sourceNetAppointments.ActiveViewType == SchedulerViewType.Week)
    {
        dayViewBase = this.sourceNetAppointments.GetWeekView();
    }
 
    if (dayViewBase != null)
    {
        dayViewBase.RulerFormatStrings.HoursFormatString = "HH";
        dayViewBase.RulerFormatStrings.MinutesFormatString = ":mm";
        dayViewBase.RulerStartScale = 7;
        dayViewBase.RulerEndScale = 20;
        dayViewBase.RulerWidth = 55;
        dayViewBase.RangeFactor = ScaleRange.QuarterHour;
    }
}

No answers yet. Maybe you can help?

Tags
Scheduler and Reminder
Asked by
david
Top achievements
Rank 1
Share this question
or