We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

WebApiAdaptor Error In Schedule

Thread ID:

Created:

Updated:

Platform:

Replies:

141201 Nov 29,2018 12:10 PM UTC Dec 3,2018 04:23 AM UTC Angular - EJ 2 3
loading
Tags: Schedule
osama gamal
Asked On November 29, 2018 12:10 PM UTC

public eventSettings: EventSettingsModel= { dataSource: new DataManager({
url: 'https://js.syncfusion.com/demos/ejservices/api/Schedule/LoadData',
crudUrl:'https://js.syncfusion.com/demos/ejservices/api/Schedule/LoadData',
adaptor: new WebApiAdaptor,
})};

I did write the code exactly like the example : https://ej2.syncfusion.com/angular/demos/#/material/schedule/remote-data and this error happened 


ERROR TypeError: Cannot read property 'indexOf' of undefined
    at WebApiAdaptor.push.../node_modules/@syncfusion/ej2-data/src/adaptors.js.UrlAdaptor.processQuery (adaptors.js:462)
    at DataManager.push.../node_modules/@syncfusion/ej2-angular-schedule/node_modules/@syncfusion/ej2-data/src/manager.js.DataManager.executeLocal (manager.js:116)
    at manager.js:164
    at ZoneDelegate.push.../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
    at Object.onInvokeTask (core.js:16126)
    at ZoneDelegate.push.../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
    at Zone.push.../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
    at push.../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:496)
    at ZoneTask.invoke (zone.js:485)
    at timer (zone.js:2054)

Karthigeyan Krishnamurthi [Syncfusion]
Replied On November 30, 2018 04:54 AM UTC

Hi Osama,  
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported scenario with the provided code example and Schedule is rendering without any script error. Kindly try the below sample and if the issue persists, try to reproduce the error in a sample and revert else share your Schedule code example/runnable sample (if possible) to serve you better. 
 
Regards, 
Karthigeyan  



osama gamal
Replied On November 30, 2018 01:06 PM UTC

https://drive.google.com/file/d/1jWVMogHQ_aj_UQ3vsfQ8WiGBCbvWOJLt/view?usp=sharing

just run it in visual studio 2017 and use link  http://localhost:50976/calendar



Karthigeyan Krishnamurthi [Syncfusion]
Replied On December 3, 2018 04:23 AM UTC

 
We are happy that your issue is resolved in 2XXXXX ticket. 
 
Regards, 
Karthigeyan 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;