DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI

Home Page:https://devexpress.github.io/devextreme-reactive/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DayView or WeekView with ongoing cells after midnight

kay-es opened this issue · comments

commented

I'm using ...

  • React Grid
  • React Chart
  • React Scheduler

Description

I'm currently evaluating the scheduler if it could work for shift planning but I have seen that for e.g. DayView the startDayHour and endDayHour can set between 0-24 which is mostly fine but when it comes to night shifts (e.g. 22:00 - 06:00) this doesn't work out in the same column.

Before using a 2-day interval, I'm currently looking into your core and there I noticed that the cells are breaking if I set endDayHour higher than the documented maximum of 24 (e.g. I set 26), then the cells start again at the same day 07.12.2022 00:00:00:

startDayHour = 22
endDayHour = 26
cellDuration = 120

Date: 07.12.2022
cell 1: 07.12.2022 - 22:00 to 00:00
cell 2: 07.12.2022 - 00:00 to 02:00 <-- should be 08.12.2022

I guess because of this also the scheduler (or the cell) breaks and no appointment is shown. Could you give me a hint where to begin to change this behavior to eventually come up with a PR?

Thank you for using Devextreme Reactive. We use GitHub issues to track bug and feature requests. We process incoming issues as soon as possible. Issues that have been inactive for 30 days are closed. If you have an active DevExtreme license, you can contact us in our Support Center for updates. Otherwise, post your question on StackOverflow.