Skip to content

Commit

Permalink
Scheduler does not render some events in month view. Closes #1828.
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchev committed Dec 3, 2024
1 parent b0e17e5 commit 2c24843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Radzen.Blazor/Rendering/MonthView.razor
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@
return Array.Empty<AppointmentData>();
}

return Appointments.Where(item => Scheduler.IsAppointmentInRange(item, start, end)).OrderBy(item => item.Start).ThenByDescending(item => item.End).ToArray();
return Appointments.Where(item => Scheduler.IsAppointmentInRange(item, start, end)).OrderByDescending(item => item.End.Subtract(item.Start))
.ThenBy(item => item.Start).ThenByDescending(item => item.End).ToArray();
}

async Task OnListClick(DateTime date, IEnumerable<AppointmentData> appointments)
Expand Down

0 comments on commit 2c24843

Please sign in to comment.