my code is below :
// edit node (code skip)
// then refresh and open modified node
gantt.clearAll();
gantt.init(‘gantt_here’);
gantt.load(’'anyurl", “”, function(){
if(id){
gantt.open(id);
}
});
it doesn’t work. What’s wrong?
my code is below :
// edit node (code skip)
// then refresh and open modified node
gantt.clearAll();
gantt.init(‘gantt_here’);
gantt.load(’'anyurl", “”, function(){
if(id){
gantt.open(id);
}
});
it doesn’t work. What’s wrong?
The code itself should work as expected,
please check this online snippet:
http://snippet.dhtmlx.com/5/98ab76078
The data is loaded from this example https://docs.dhtmlx.com/gantt/samples/01_initialization/04_save_rest.html , the callback in the snippet opens Task #2
branch.
Can you please send a complete sample of how it fails to work in your app?
Thank you. It goes well.