I am currently coding an MVC c# project that requires an events calendar. I followed the directions on dhtmlxScheduler with ASP.NET MVC Scheduler Docs
and I am still unable to add events to my database. I think the error I am getting is in my calendar views script. Bellow is a screenshot of the error messages I am getting.
var dp = scheduler.createDataProcessor("/api/scheduler");
// and attaching it to scheduler
dp.init(scheduler);
// setting the REST mode for dataProcessor
dp.setTransactionMode("REST");
by this one:
var dp = scheduler.createDataProcessor({
url: "/api/scheduler",
mode: "REST"
});
After examining the error a bit more, it is caused by “scheduler.load(“api/scheduler”);” I have replaced the code with the code you suggested and I still get the same error. I don’t think initializing the database is the issue as I can make use of it in other parts of the application.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan