I study Gantt these days. about DataProcessor, I want to send all data at once.But I found a strange problem about DataProcessor.setTransactionMode method. If my code like this :
this.dataProcessor = gantt.createDataProcessor({ url: "http://192.168.0.88:9999/savePlanData", mode:"JSON" }); this.dataProcessor.setTransactionMode({ mode:"POST", headers:{ "Access-Control-Allow-Origin": "http://192.168.0.88:9999" } }, true);
it can’t sent all data at once, it made many times request to server.
but, if I modify code like this:
this.dataProcessor = gantt.createDataProcessor({
url: “http://192.168.0.88:9999/savePlanData”,
mode:“JSON”
});this.dataProcessor.setTransactionMode("POST", true);
it can sent all data at once. I don’t know if it’s a bug?