Scheduler 15 mins time slots show this on ruler.

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

    Posted 24 Dec 2017 Link to this post

    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;
        }
    }
Back to Top