I use DHTMLX Scheduler in my Webix Jet app and I have a problem with saving data. First editing of event is ok, but when I edit it next time without page reloading then data is not saved. How should I init DataProcessor and how can I also update event from response if response contains object of changed event?
here is my code:
define([
"app"
],function(app){
var layout = {
type:"space", rows:[
{ view:"dhx-scheduler",
id : "Scheduler",
date:new Date(),
mode:"month",
init:function(){
var scheduler = this.getScheduler();
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.first_hour = 0;
scheduler.config.multi_day = true;
scheduler.config.limit_time_select = true;
scheduler.config.time_step = 1439;
scheduler.config.drag_move = false;
},
ready:function(){
this.getScheduler().load(app.config.url, "json");
var dp = new dataProcessor(app.config.url);
dp.init(this.getScheduler());
dp.setTransactionMode("JSON");
}
}
]
};
return {
$ui: layout,
};
});