Turn data processor on\off


#1

Im looking for a way to detach\turn off the data process when I want.
I have a case where I create the data (including tasks and links), but then when I load them back from the db (using gantt.parse()), the data processor is called with ‘task’ and action ‘create’ - when that task is already in the db, thus no need to recreate it at all, just to load the data to the gantt.

Any ideas?


#2

Hello Refael,
You can use the destructor method to destroy the Data Processor:

dp.destructor();

Here is the snippet that demonstrates how it works:
https://snippet.dhtmlx.com/5/31627fc54