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

Issue Binding Event Data from WebAPI

3 Answers 77 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 13 Feb 2017, 05:11 PM

Hi,

I am using the trial edition of the Kendo UI products and I'm working on a scheduler proof of concept.

I've reviewed numerous items in this knowledge base and on the common issues site and I still am unable to get any scheduler events from my api to show on the scheduler. I'm attaching my .html document and the results of my api service call from the browser. I have compared the date formatting to this data from your samples (https://demos.telerik.com/kendo-ui/service/meetings) and I don't see any differences related to the date formatting. I have also tried formatting the date in these formats being returned by the api - yyyy-MM-ddThh:mm:ssZ, yyyy/MM/dd hh:mm:ss AM/PM with no luck.

I can get my resources to appear on the scheduler ok and as you will see in my .html file that I can create an event associated to one of the resources with no problem when I manually create the event in the datasource.

3 Answers, 1 is accepted

Sort by
0
Gary
Top achievements
Rank 1
answered on 13 Feb 2017, 06:50 PM
I realized that in my code sample I attached I did not have the Technician column being returned. Even with that column being returned I still get the same result of no data appearing on the scheduler.
0
Joana
Telerik team
answered on 15 Feb 2017, 01:03 PM

Hello Gary,

Given the provided information, make sure that the dataType is set to the correct result type - jsonp should be used for cross-domain requests and the json for same-domain. This interfere loading of data in the Scheduler. Another thing you could check is whether there are any javascript errors on the page and whether the service response is correct. I am not able to see GetAppointmentListResult in yout service response either.

Useful articles you might review:

Regards,
Joana
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Gary
Top achievements
Rank 1
answered on 15 Feb 2017, 02:56 PM
Thanks Joana. After more playing around I was able to get this working. As I was making multiple changes at a time I'm not 100% sure what I did to fix it but all is well right now.
Tags
Scheduler
Asked by
Gary
Top achievements
Rank 1
Answers by
Gary
Top achievements
Rank 1
Joana
Telerik team
Share this question
or