RadzenScheduler has a hard time showing appointments which starts time shifted #416

Closed
opened 2026-01-29 17:36:58 +00:00 by claunia · 1 comment
Owner

Originally created by @maxreb on GitHub (May 19, 2022).

If you have appointments which are time shifted (i.e. every 15 minutes) you get a quite ugly looking experience. See image below, the different colors could be drawn one under another, but are left/right shifted.
So imagine you have 6 appointments:
09:45 - 11:15 (Red)
10:00 - 11:30 (Green)
10:15- 11:45 (Yellow)

11:15 - 13:15 (Red)
12:00 - 13:30 (Green)
12:15 - 13:45 (Yellow

Then the red ones could be shown underneath, exactly the same as the green and yellow ones, but actually they all will be drawn horizontally shifted:
image

My idea was to sort the items beforehand by their respective color but that didn't worked, so I took a look in the Radzen source code and found this line:
f6189c6d8a/Radzen.Blazor/Rendering/DaySlotEvents.razor (L73)

Here the data will be sorted by starting time, so my sort will be destroyed. The same for Week and Month View.

To fix this we could delete this line and let the user decide how the items will be sorted.

  • Version 3.16.6
Originally created by @maxreb on GitHub (May 19, 2022). If you have appointments which are time shifted (i.e. every 15 minutes) you get a quite ugly looking experience. See image below, the different colors could be drawn one under another, but are left/right shifted. So imagine you have 6 appointments: 09:45 - 11:15 (Red) 10:00 - 11:30 (Green) 10:15- 11:45 (Yellow) 11:15 - 13:15 (Red) 12:00 - 13:30 (Green) 12:15 - 13:45 (Yellow Then the red ones could be shown underneath, exactly the same as the green and yellow ones, but actually they all will be drawn horizontally shifted: ![image](https://user-images.githubusercontent.com/39700092/169315185-52e52eca-dd0a-4c98-85ef-11dbedc11109.png) My idea was to sort the items beforehand by their respective color but that didn't worked, so I took a look in the Radzen source code and found this line: https://github.com/radzenhq/radzen-blazor/blob/f6189c6d8a79fc38f74296b8abf4438198c30b6a/Radzen.Blazor/Rendering/DaySlotEvents.razor#L73 Here the data will be sorted by starting time, so my sort will be destroyed. The same for Week and Month View. To fix this we could delete this line and let the user decide how the items will be sorted. - Version 3.16.6
Author
Owner

@akorchev commented on GitHub (Jun 13, 2022):

I am afraid removing the sorting could be a breaking change.

@akorchev commented on GitHub (Jun 13, 2022): I am afraid removing the sorting could be a breaking change.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#416