How do locked graphObjects

i want locking objects.
any object or selection list.I not want move or resize or undomanager or command handler events for locked objects .
How to create this state ?

There are various properties on the Part class that you can set or bind, such as movable and resizable. Please read GoJS User Permissions -- Northwoods Software.