Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page.
X
Offhand, I'd say your best bet is to intercept the opening of the Modify Attributes dialog using a "create" window callback. This will give you the opportunity to examine the current element and make the relevant attribute(s) read-only by disabling the corresponding XUI controls.