Schedule with CRUD databinding : ej.data.DataManager is not a constructor

Hello,

It's the first time i'm using EJ2 Schedule and the basic exemple i've found on the documentation works :
@Html.EJS().Schedule("schedule").Render()
But when i try to use data binding following the "Performing CRUD actions" section on the documentation , like this :

@Html.EJS().Schedule("schedule").Width("100%").Height("550px").EventSettings(e => e.DataSource(d => d.Url("http://localhost:2777/Agenda/GetData" + "?Id=" + ViewBag.Id).CrudUrl("http://localhost:2777/Agenda/Crud" + "?Id=" + ViewBag.Id).Adaptor("UrlAdaptor").CrossDomain(true))).SelectedDate(DateTime.Now).Render()
I get this javascript error and nothing is displayed :
Uncaught TypeError: ej.data.DataManager is not a constructor at Agenda:332
Agenda:332 :
<script>var Schedule1qsvhgniqlx=new ejs.schedule.Schedule({
  "agendaDaysCount": 7.0,
  "eventSettings": {
    "dataSource": new ej.data.DataManager({
  "url": "http://localhost:2777/Agenda/GetData?Id=*MyId*",
  "adaptor": null,
  "insertUrl": null,
  "removeUrl": null,
  "updateUrl": null,
  "crudUrl": "http://localhost:2777/Agenda/Crud?Id=*MyId*",
  "batchUrl": null,
  "json": null,
  "headers": null,
  "accept": false,
  "data": null,
  "timeTillExpiration": 0,
  "cachingPageSize": 0,
  "enableCaching": false,
  "requestType": null,
  "key": null,
  "crossDomain": true,
  "jsonp": null,
  "dataType": null,
  "offline": false,
  "requiresFormat": false,
  "Id": null
})
  },
  "firstDayOfWeek": 0.0,
  "height": "550px",
  "selectedDate": "2018-10-24T10:33:47.9202397+02:00",
  "width": "100%"
});
I've got EJ1 and EJ2 installed on the same project , mabye it comes from that ?

I can't find how to uninstall only EJ1 , I don't use it anymore .

I also got troubles installing EJ2 , it dosen't worked with Essential studio Entreprise Edition and it says on the documentation :

  • Follow the steps mentioned in the setup guide and install the specific/entire platform in your machine.
But "setup guide" is a dead link ("https://help.syncfusion.com/common/essential-studio/essential-studio-installer-for-individual-platform") , so i've maybe skipped important steps.


Thanks you for your time .

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team October 25, 2018 11:35 AM UTC

Hi Enzo 
 
Thank you for contacting Syncfusion support. 
 
We have prepared the EJ2 CRUD sample which can be download from the below location. 
 
Syncfusion does not allow to uninstall specific platform in earlier v16.2.0.21 and it uninstalls entire installed platform in corresponding version. In our latest version, we can install and uninstall specific platform, please refer the below documentation to install the setup.   
 
Regards, 
Karthigeyan  
 



EN Enzo October 26, 2018 08:30 AM UTC

Hello,

Thank you for your reply.

I followed the exemple you sended but I got another javascript error :

Uncaught TypeError: ej.data.UrlAdaptor is not a constructor at Agenda:365
Agenda 365 :

"eventSettings": {
    "dataSource": new ej.data.DataManager({
  "url": "http://localhost:2777/Agenda/GetData?Id=d17906de-0615-4d4b-bb16-98e65473597d",
  "adaptor": new ej.data.UrlAdaptor(),
  "insertUrl": null,
  "removeUrl": null,
And still , nothing is displayed.

But the basic exemple still works 
@Html.EJS().Schedule("schedule").Render()



KK Karthigeyan Krishnamurthi Syncfusion Team October 29, 2018 05:57 AM UTC

Hi Enzo, 
 
Thanks for your update. 
 
Kindly try once again by uninstalling all the build in your system and install only EJ2 build. If still issue persists, try to reproduce the error in our previous sample and revert else share your code example/runnable sample (if possible) to serve you better. 
 
Regards, 
Karthigeyan 
 
 


Loader.
Up arrow icon