How to show read-only fields using

Gerard

I'm using a RadPropertyGrid to display a categorized list of string fields. I don't want the user to be able to edit the fields, but I do want them to be able to select and copy the text in the fields. In order to do this, I set the IsReadOnly property of the PropertyGrid to True. When I do this, the text fields are grayed-out. I don't like this because it makes the fields hard to read, and it is less obvious to the user that they are able to copy the text in the grayed-out fields.

I have looked all over the place, and tried a number of suggestions, to make the grayed-out fields look like normal fields, but nothing so far has worked.

Gerard

The title of my original post should have been: How to show read-only fields using a normal style

but I can't edit it...

Also, your forum software wrecked my uploaded pictures, making it very hard to see the difference between the two. Just imagine the right column of the CurrentReadOnly.png file being heavily grayed-out.

Martin Vatev

To achieve your goal, you may use the ReadOnlyEditorState property. You need to configure RadPropertyGrid with:ReadOnlyEditorState="ReadOnly"
IsReadOnly="True".

Regards,
Martin Vatev
Telerik

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items

Gerard

Thanks for your reply. I played a little more with my application. If I use the default style, the ReadOnlyEditorState attribute works. However, I want to use the 'Visual Studio 2013' implicit style. With that style, the attribute does not make a difference. I am currently trying to determine what changes are required in the 'Visual Studio 2013' style templates to implement this functionality. I would appreciate any guidance you might have re: the files and/or templates to change..

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.