Our Diagram component allows you to restrict edit operations as needed. To prohibit a specific operation, set its corresponding method within the Editing method to false.
In this demo, the OnRequestEditOperation function implements complex logic to determine whether an operation is allowed. The reason event parameter indicates whether the event is raised by a user action or via a UI update. If a user tries to perform a prohibited action, an error message is displayed.