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

Need some examples, Scheduler Appointments to Odata/JSON

6 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 01 Nov 2012, 02:40 AM
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!

6 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 01 Nov 2012, 04:55 PM
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.
0
Andrew
Top achievements
Rank 1
answered on 03 Nov 2012, 01:17 AM
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!
0
Andrew
Top achievements
Rank 1
answered on 03 Nov 2012, 01:21 AM
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


0
Andrew
Top achievements
Rank 1
answered on 03 Nov 2012, 01:49 AM
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.
0
Genady Sergeev
Telerik team
answered on 08 Nov 2012, 09:01 AM
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.
0
Andrew
Top achievements
Rank 1
answered on 09 Nov 2012, 03:05 AM
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.
Tags
Scheduler
Asked by
Andrew
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Andrew
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or