This is a migrated thread and some comments may be shown as answers.

Appointment Datasource / asynchronous loading

2 Answers 131 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rudolf
Top achievements
Rank 1
Rudolf asked on 25 Jan 2012, 03:26 PM
Dear Telerik Team,

i have a little quest.

I Have a RadScheduleView Control, with an AppointmentDatasource, which get's the Appointments from
a Webservice.

My Problem is, that the Appointments will be loaded by to Webservice calls

Step 1. FreeBusyAppointments
Step 2. ExchangeAppointment Details

Step 1 work very well and very fast, but Step 2. needs a lot of time, because the Backendservers are very slow while fetching the data.

So my solutions ist, that i turn on a busy indicator, loading Step 1 from the Webservice, put the Appointments into the RadschedulerView,
then turn off the busy inidcator and start a backgroundworker which loads the ExchangeAppointment details. When Step 2 is finished
the Appointments will be added to the Rad Scheduleview.

This should give users the possibility to see and user the radscheduleview before all appointment details are loaded.

That's the plan.

The Problem is, that after i turn of the busy indicator and starting the backgroundworker,
i see the freebusy appointments in the radscheduleview, but the busy indicator is also stil shown,
but it hangs up (including the InternetExplorer) until all Appointments from step 2 are loaded and filled into the radscheduleview.

I can easily reproduce this with filling some static Appointments in the RadScheduleview while blocking the Backgroundworker process with a 

System.Threading.Thread.Sleep(xxxx);


Is there any Solution about such a scenario - because the Step 2. can take up to 30 seconds, and the control is unusable during this period

thanks for your help

kind regards
Rudi

2 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 31 Jan 2012, 10:26 AM
Hi Rudi,


I tried to reproduce the problem, but to no avail. You can find the attached sample project. At start up, some basic appointments are loaded (in 5 secs delay) and after that on completed event in the background worker new 2 appointments are added to the ScheduleView control. Please, take a look and let me know if I miss something. 

I am glad to assist you further.

Regards,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rudolf
Top achievements
Rank 1
answered on 01 Mar 2012, 03:05 PM
that worked great, thank you very much
Tags
ScheduleView
Asked by
Rudolf
Top achievements
Rank 1
Answers by
George
Telerik team
Rudolf
Top achievements
Rank 1
Share this question
or