We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Events order in the same day

Hello Syncfusion,

I'm curious how to set the order of events in which they are going to be displayed in the same day one over another. The order I tried to add them to data source seems doesn't have effect.

Here we can see one background event from 5th to 18th and many events every day displaying over it, and that fine. But on 18th background event rendered first and availability event is hidden by it. I supposed it might be because order of rendering. See next picture


The big background event has data-index 0 and all other availability events index - 1 (highlighted green). But for 18th it vise versa and I believe that's why one event is hidden. How to change the order in which events are rendering? Thanks


3 Replies

VR Vijay Ravi Syncfusion Team January 6, 2023 11:06 AM UTC

Hi Valentyn


The available appointment rendered at the bottom because one appointment's start time is earlier than another's, or both appointments have the same start time, but one was placed in the data source earlier than the other. You can use the SortBy property to sort the appointments. For more information, see the UG below.


Ug docs: https://blazor.syncfusion.com/documentation/scheduler/appointments


Regards,

Vijay Ravi



VH Valentyn Horobets January 6, 2023 03:40 PM UTC

Thanks a lot 


SortBy  it's what I just needed



RV Ravikumar Venkatesan Syncfusion Team January 10, 2023 06:38 AM UTC

Valentyn,


You're welcome! Please get back to us if you need any other assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon