Recommended way to integrate ScheduleView in Silverlight with asmx WebService

4 posts, 0 answers
  1. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 22 Sep 2011 Link to this post

    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)?
  2. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 28 Sep 2011 Link to this post

    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
  3. George
    Admin
    George avatar
    1332 posts

    Posted 28 Sep 2011 Link to this post

    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 >>

  4. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 28 Sep 2011 Link to this post

    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.
Back to Top