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

RadScheduler MVC and SOA

1 Answer 104 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 02 Feb 2011, 08:36 PM
Hi,

I'm experimenting with using the ASP.NET AJAX RadScheduler in an MVC project which so far I have managed to implement with some rudimentary functionality and like what I see. We already have a middle tier which exposes schedule data via a WCF service returning what are essentially DTOs. I have seen examples of using a webservice that then talks to a data provider on the server and I see from this post:

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/data-providers-and-web-services.aspx

that although it's possible to avoid writing a data provider the complications involved mean it probably makes the most sense to just implement a provider. Ideally I'd like to be able to simply invoke our WCF service from the client side and have the RadScheduler utilize the DTO instances returned. The DTO we return can be shaped to fit whatever the RadScheduler needs. Is this possible? I do see that there is the DataSource property where you can bind to an IEnumerable but it looks like that may not work in an MVC project and requires server side methods.

It may be feasible for us to have our WCF service invoke a custom data provider that simply then executes our normal code path from the custom RadScheduler data provider this then would look much like your WebService examples. I understand the data provider pattern and I like that you have used this approach but I was hoping to understand a little better what the WebServiceAppointmentController does before I go down this path. It does mean some complications because we have change tracking and other mechanisms in place to facilitate simply passing DTOs around for CRUD operations so mapping to your Appointment types means a lot of mapping between types etc.

Also, if you have any other suggestions for an approach given what I've described of our architecture, I'd appreciate your thoughts.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 07 Feb 2011, 11:26 PM
Hi Daniel,

Your idea is interesting but I am afraid that it is not achievable.
The WebServiceAppointmentController class is used to call your provider from web services, and it creates the appointment instances before passing them to the provider.

All the best,
Kalina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Daniel
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or