How can I have an onCut or OnDelete event of a symbol, so that if certain situations don''t met I can abort the symbol deletion.
Example: I have a diagram with 3 symbols linked sequentially
A -> B -> C
...I want that if someone tries to delete B, I abort the deletion and inform that it must delete firs the links related to B, wich in this case are 2: A->B and B->C.
ADAdministrator Syncfusion Team June 24, 2004 01:39 PM
The current version of Essential Diagram does not provide a means to detect and pre-empt a delete/cut command. I have logged this as a feature request and we will do our best to support such functionality in a future version of the product. For the time being, you can check your diagram''s Controller.SelectionList property to determine the selection and invoke the cut/remove command depending on the nodes that are currently selected.
RIRichJuly 5, 2004 08:15 PM
Will there be node delete and node add events in the soon to be release version 18.104.22.168 of essential suite.
ADAdministrator Syncfusion Team July 7, 2004 03:59 PM
The Diagram.Model.ChildrenChangeComplete event can be used to determine whether a node has been added to the diagram. As for node deletion, we have this filed as a feature request and we will do our best to add the feature for the next public update of Essential Diagram. For the time being, please workaround this limitation by using the Controller.SelectionList as described earlier to allow/pre-empt the delete operation.