silent

makes all code inside it not to trigger internal events or server-side calls

void silent(function callback);
callbackfunctionthe callback function

Example

gantt.silent(function () {
    // the task will be deleted only from the client side
    // the gantt won't repaint it automatically
    gantt.deleteTask(id);
});
 
// repaint the gantt manually when ready
gantt.render();

See also
Back to top