There are mutliple ways to do it, may be you can try the following:
Add a boolean attribute to your entity say 'CheckboxSelected' and use this to control the editability of all the checkboxes.
Add on change logic on all the checkboxes which would toggle this attribute 'CheckboxSelected''