DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.07k stars 376 forks source link

DayView or WeekView with ongoing cells after midnight #3615

Closed kay-es closed 1 year ago

kay-es commented 1 year ago

I'm using ...

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?

github-actions[bot] commented 1 year ago

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.