Appointmentcollection and Async/Await

Hi,
working on this for days now.
I have a very large database with appointments.
I get those data and generate appointments from it. One after the other. This takes nearly 30 seconds.
I don`t want the UI to be freezed in this time.
Now i am trying to fill the appointmentCollection in another thread using the Async/await pattern.

But seems as if i am to stupid to do so. When trying to bind the schedule.Appointment to this AppointmentCollection i am getting an Error that this is not possible cause the appointmentCollection is in another thread.

Has anyone a working example for me ?

Many thanks in advanced

Tom

1 Reply

AI Anirudhan Iyyappan Syncfusion Team April 13, 2020 12:24 PM UTC

Hi Tom, 
 
Thank you for contacting Syncfusion support. 
 
Based on your requirement, we have prepared a sample using the ObservableCollection and added the Appointments using the Async / Await method. Please refer to the sample below for further references. 
 
 
Regards, 
Anirudhan 


Loader.
Up arrow icon