I want to Disable all the button in diagram when diagram is in readonly mode.
I tried with some binding like this:
new go.Binding(‘isEnabled’, ‘btnIsEnabled’, function () {
if (_that.diagram.isReadOnly === true) {
return false;
}
return true;
}).makeTwoWay(go.Point.stringify),