I set diagram to readonly but CommandHandler still enabled, Is there a simple way to disable CommandHandler, and set it back when I want edit diagram.
There are some commands that still make sense to execute on a readonly diagram.
There is no “isEnabled” property for CommandHandler, and there aren’t any properties on the CommandHandler for disabling individual commands. However, all of the commands can be disabled by setting properties on the Diagram and on other objects, depending on the command. Read the documentation for the individual commands, and:
GoJS User Permissions -- Northwoods Software
Or override the specific CommandHandler.can… method for the command.
Thank you. I will try it.