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

Use web service for page load and then disable it.

1 Answer 32 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hemika
Top achievements
Rank 1
Hemika asked on 29 Jan 2014, 07:22 PM
Hi, 

I have created an asp page that has a telerik scheduler control. I am binding all the appointments in the Page_Load function and I have also implemented other functions such as "OnAppointmentInsert", "OnAppointmentUpdate", "OnAppointmentDelete" and so on. Everything is working correctly.

Now I have a requirement to load the appointments after the page is loaded. Therefore I used the webservice functionality that telerik provides(Link1 , Link2).
So now once the page is loaded, the scheduler will call the "GetAppointments" function of the webservice and bind the appointments to the calender.

Now when I move an appointment, it calls the method that was mentioned in the webservice.
public IEnumerable<AppointmentData> UpdateAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData)

But what I want is to call the following function which was written on the page cs file.
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)

What I need is that once the appointments are bounded to the scheduler, the use of the webservice should get disabled. So that it would use the server events I added earlier such as "OnAppointmentInsert", "OnAppointmentUpdate", "OnAppointmentDelete".

However my primary objective is to load the appointments once the page is completely loaded.

Thanks, 
Hemika Kodikara

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 31 Jan 2014, 03:56 PM
Hello Hemika,

I would like to clarify that changing the web service binding with server-side binding is not supported scenario. Either one approach for populating the RadScheduler with data is allowed and could be used. I would like to note something important about the RadScheduler server-side binging: In order to work as expected we recommend populating RadScheduler with data on Page_Init server-side event.

Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Hemika
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or