I have a button in the page that only calls a function to delete the selected nodes in this way:
function DeleteSelection() {
myDiagram.allowDelete = true;
myDiagram.commandHandler.deleteSelection();
myDiagram.allowDelete = false;
};
The strange thing is that all nodes can be deleted but not the node with the table template and I cannot find why.
Andre
I don’t know – CommandHandler.deleteSelection() calls Diagram.removeParts on a collection of all selected Parts for which Part.canDelete() is true, so it really doesn’t care about the type of the Part nor any template. Unless the template sets or binds Part.deletable to false?
Check to see if there are any errors or messages in the console.