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

Custom Methods on Web Service

1 Answer 37 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 15 Sep 2012, 09:12 PM
I am currently using RadScheduler with webservice bindings.

I need to perform some processing on an appointment and its resources before saving it, but I need to do this server side. I was hoping someone could give me some guidance on how to go about this. My current thought it to add my own method to the webservice and call it manually. But I'm unsure how I would call this from the client and post along the appointment data? This must already happen somewhere for the webservice calls to GetAppointments, InsertAppointments etc so I was hoping I could use similar code.

For example, if I was to add the following method to my webservice, how could I call this from the client side javascript?

[WebMethod]
public bool DoServerSideStuff(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
{
return MyClass.DoSomething(schedulerInfo, appointmentData)
}

 
William

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Sep 2012, 10:49 AM
Hi William,

 
You can achieve such custom functionality in the provider as it is done in the attached project by sending additional information to the Web Service.

Hope this will be helpful.

All the best,
Plamen
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
William
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or