hi,
i want to disable dataprocessor for many actions in my tree (delete from the visible tree on the page, but do nothing in the database)
how can i do that ?
thanks
There is no native solution, but the next code can be used
var old=dp.setUpdated;
dp.setUpdated=function(){};
…any code here will not trigger dataprocessor …
dp.setUpdated=old;
where dp - instance of dataprocessor
thanks for the answer, it’s work !
but when it delete an item during the setUpdated function is redefine, the node don’t disapear in the tree. he is just crossed. is it normal ? how can i do to make it invisibe ?
You can use the next code snippet for item deleting
tree.setUserData(id,"!nativeeditor_status",“deleted”); //mark item to be ignored by dataprocessors logic
tree.deleteItem(id);
ok, it’s perfect.
thanks