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

Recommended way to integrate ScheduleView in Silverlight with asmx WebService

3 Answers 86 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
samy
Top achievements
Rank 1
samy asked on 22 Sep 2011, 11:24 AM
I'm setting up a SL program that would allow users to planify and validate events with Telerik's ScheduleView. From what i've seen, it's recommended to use the Appointment class (also the Slot class would interest me) but these classes live in the telerik ScheduleView silverlight assembly, which i'd like not to include as references in my webservice.

What's the best way to manage these classes server-side too? Should i create one server-side class with Appointment informations on the server and then map these classes to telerik's Appointment? Is there a way to automatically map these classes on both ends of the wire (which would be very nice)?

3 Answers, 1 is accepted

Sort by
0
samy
Top achievements
Rank 1
answered on 28 Sep 2011, 10:20 AM
I'd really like to have some data on how to integrate the custom appointment system with webservice calls. Obviously i can't inherit from Appointment since webservices classes are inheriting from object at generation time so i'd like to know what's recommended in terms of working with the ScheduleView from a webservice datasource
0
George
Telerik team
answered on 28 Sep 2011, 10:54 AM
Hi Samy,

Thank you for contacting us.

Adding a reference to the ScheduleView assembly in the web project won't help because the Appointment class is without a serializable tag and it cannot be use in a web service. So, I would suggest you two approaches to manage the scenario:
  1. Using EntityFramework and RIA Services - we have a detailed explanation end-to-end how to integrate the control with a database - http://www.telerik.com/community/forums/silverlight/scheduleview/database-table-structure.aspx

  2. Using a web service (WCF Service as well) and to transfer the data manually, handle creating, updating, deleting appointments manually. For more information, you could refer to the following link - http://www.telerik.com/help/silverlight/radscheduler-populating-with-data-overview.html. The article is written for the RadScheduler control, but the logic is the same for RadScheduleView control.

Hope this helps.


All the best,
George
the Telerik team

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

0
samy
Top achievements
Rank 1
answered on 28 Sep 2011, 02:38 PM
Thanks for your answer George

Indeed, adding the reference was no help in the web project because of :
- the whole dependency tree it that was brought with the ScheduleView
- The Serializable problem

On the other hand, since i can't go down the RIA Services route, i can't really directly interface the control with appointments from a db. I'll have to take the Webservice way you describe and handle the data by myself.
Tags
ScheduleView
Asked by
samy
Top achievements
Rank 1
Answers by
samy
Top achievements
Rank 1
George
Telerik team
Share this question
or