CalendarHelper.StartDayTime and EndDayTime do not work

Posted by: jeff1937 on 19 September 2017, 10:13 am EST

  • Posted 19 September 2017, 10:13 am EST

    Hi,

    I set the start time and end time of working days by using code:

    scheduler.CalendarHelper.StartDayTime = (_workingDays.StartTime.Value - _workingDays.StartTime.Value.Date);

    scheduler.CalendarHelper.EndDayTime = (_workingDays.EndTime.Value - _workingDays.EndTime.Value.Date);

    The start time is set to "02:00:00", and the end time is set to "14:00:00".

    However, the visual time slots sitll start from 12:00 AM.

    Is there something missing?

    Thanks

  • Posted 19 September 2017, 10:13 am EST

    However, the visual time slots sitll start from 12:00 AM.

    What do you mean by that? Default scheduler styles always show all day slots from 12:00

    AM. The difference is in appearance of working-time slots. For example, for default Office

    2007 theme, working time slots are white.

    You have two possible options:

    • set C1Scheduler.FirstVisibleTime property to the start time of the working day. In such

      case scheduler will autoscroll to that time at opening Day or Week view, but user will be

      able to scroll to earlier time.

    • create own template for a DayView showing working time only.

  • Posted 19 September 2017, 10:13 am EST

    Build 101 will contain new property:

    public bool ShowWorkTimeOnly { get;

    set; }

    Gets or sets the Boolean value determining whether control shows working time only. This property affects Day/Work Week views or any custom view which has VisualIntervalScale value less than one day.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels