Custom sort in Calendar timelineDay view

Hi

So I'm developing a shift-schedule app. There are two different types of calendar events, says A, B. I want the A events to be next to each other, says at the upper part of the calendar, while Bs are at the lower part. However, A events and B events start time are random.

Now the calendar sort it from the start time isn't it, how can I implement the custom sort for the appointment display?

Also, the appointments don't have margin between each other, is it possible to set that up without using custom appointment widget?


Thank you in advance!




3 Replies 1 reply marked as answer

IR Indumathi Ravichandran Syncfusion Team October 20, 2021 10:45 AM UTC

Hi Komkrit, 
 
Thank you for contacting Syncfusion support. 
 
Regarding Query: Custom sort in Calendar timelineDay view. 
 
Based on the shared information, we have checked and your requirement is “Custom sort of appointments in the Flutter Calendar”. The Flutter Calendar doesn’t have support for sorting of appointments, but we have a resource view support to display the appointments separately. 
 
Please find the UG documentation link for resource view. 
 
 
Also, we have KB documentations for adding resource in the Flutter Event Calendar and customize the resource view. Please find the KB documentations from the following link. 
 
KB link: 
 
Also please check the resource view sample from the following link. 
 
Link: 
 
We hope that this helps you. If possible, can you please share more details about your requirement clearly. It would be helpful for us to analyze and provide you a solution at the earliest? 
 
Regarding Query: The appointments don't have margin between each other, is it possible to set that up without using custom appointment widget? 
 
As per the current calendar implementation there is no support to set the margin for appointments. Please let us know if you require any other assistance, we will be happy to assist you. 
 
Regards, 
Indumathi R 


Marked as answer

KO Komkrit October 26, 2021 05:53 AM UTC

Hi Indumathi,


Thank you for your response. 


I've tried the resource view and it does the job so far. Thank you!


For the margin bit, I'm using custom appointment widget and it works.


Will reach out later if I need further assistance.


Thanks,

Komkrit



IR Indumathi Ravichandran Syncfusion Team October 26, 2021 07:13 AM UTC

Hi Komkrit, 
 
Thank you for the update.

 
We are glad that the provided response meets your requirement. Please let us know if you need further assistance. As always, we are happy to assist you.  
 
Regards, 
Indumathi R 


Loader.
Up arrow icon