According to the documentation you should be able to set either the Editable or ReadOnly attributes to control this (http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Framework/7/User-Interface/Object-Editing/Object-Editing/).
Is this possible in CMS 6 R2? I can't find anywhere how to accomplish this.
Persyl: I don't think so. I'ts possible to accomplish with a custom property though.
What I've done in CMS 6 is to create a custom property type called PropertyReadOnlyString inheriting PropertyString and then simply add a "disabled" attribute when the edit control is created. Same can be applied to PropertyLongString, PropertyNumber, etc.
I did the same solution as Ted.
This is what you need to do in the CreateEditControls() method of the Control class.
public override void CreateEditControls()
{
this.EditControl.Attributes.Add("disabled", "disabled");
}
Is there a way to make a property read-only in edit mode? We have pages created from another source and some of the values is not to be changed in EPiServer but they must be visible to the editor. So to hide it in edit mode is not enough since it should be visible but editable.