Need some examples, Scheduler Appointments to Odata/JSON

7 posts, 0 answers
  1. Andrew
    Andrew avatar
    14 posts
    Member since:
    Nov 2010

    Posted 31 Oct 2012 Link to this post

    I'd like to be able to consume some scheduler appointments using JSON. Do you have any good example of a web service project that can use the JSONP Dataservices to serve up Appointments? I'm really struggling with this on my own.

    Thanks!
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2035 posts

    Posted 01 Nov 2012 Link to this post

    Hello Andrew,

    I would like to recommend you to check those two links:
    • This online demo demonstrates how you can populate the RadScheduler using ODataBinding.
    • Please find here a online demos related to the ODataDataSource control.
    Hope that this will lead you into right direction.

    Regards,
    Boyan Dimitrov
    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.
  3. Andrew
    Andrew avatar
    14 posts
    Member since:
    Nov 2010

    Posted 02 Nov 2012 Link to this post

    I'm afraid that was not the question. I understand how to bind the scheduler and other UI objects to the datasource. I need help creating an Odata datasource. I would like to have a feed that displays scheduled items, but I have to query the schedule for a period of time then generate a list of those items on the client. I need to be able to get a list of appointments turn them into a JSON string that can be queried by clients and displayed as any sort of Kendo UI object.

    Any tips on this would be much appreciated.

    Thanks again!
  4. Andrew
    Andrew avatar
    14 posts
    Member since:
    Nov 2010

    Posted 02 Nov 2012 Link to this post

    In summary I need to produce a list of appointments with selected properties and return them as a service similar to:
    http://demos.kendoui.com/service/Northwind.svc/Employees


  5. Andrew
    Andrew avatar
    14 posts
    Member since:
    Nov 2010

    Posted 02 Nov 2012 Link to this post

    Example: Let's say you have a list(of appointments)

    How can you create a class for that and handle the return in a WCF project? Mine continually throws errors abour converting the iqueryable or ienumerable or the entire project just doesn't run.

    I've thrown my hands up trying to expose the scheduler data through an odata service.

    Any example that I can use as a reference/starting point would be fantastic if it existed.
  6. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 08 Nov 2012 Link to this post

    Hi Andrew,

    I suggest that you take a look at these excellent videos (take a look at video 1 and 2) by Shawn Wildermuth that show how to create OData services that can expose any type of data, including Appointments objects. Then consuming the services is straightforward. Please give it a try and let us know how it is going.

    All the best,
    Genady Sergeev
    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.
  7. Andrew
    Andrew avatar
    14 posts
    Member since:
    Nov 2010

    Posted 08 Nov 2012 Link to this post

    Thank you so much for all the help. I was finally able to figure it out using the following example:

    http://msdn.microsoft.com/en-us/library/dd728281.aspx

    Once I had the ability to write my own code to return data from the service without being locked into the entities provided by VS it was pretty easy. I am definitely going to check out those videos!

    Thanks again for always following up.
Back to Top