This is a migrated thread and some comments may be shown as answers.

Make the DisplayName bold

3 Answers 31 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Ari
Top achievements
Rank 1
Ari asked on 25 Sep 2012, 07:28 PM
Hi...

I've got AutoGeneratePropertyDefinitions set to false, and am populating everything myself.  So far, so good, I can customize all the editors.  But some properties I'm placing in the editor are optional, and some are not, and I'd like to give the user a visual cue about this: ideally, there would be a way ot customize the DisplayName of each property, making it bold, or changing it's color.  Is this possible?  If not, are there any suggestions about another visual cue I could give for this?

Thanks,

-Ari

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Sep 2012, 01:40 PM
Hello Ari,

Currently, there is not an easy way for customizing display name field. What you can try is to customize the template of each property definition, which might be a bit time-consuming if you have a lot of definitions.
Still, we will consider this case and check out what can be done so that such scenario is supported.
In the meantime, you can try customizing the editor instead and provide visual feedback that the element is required there.

Kind regards,
Maya
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Ari
Top achievements
Rank 1
answered on 03 Oct 2012, 05:20 PM
Hi...

The templates solution worked for me.  I should point out that by template I mean the ControlTemplate I'm using for the PropertyGridField, not the DataTemplate for the editor control.  For my usage, I'm glad that I now have a good handle on how to customize all that that ControlTemplate exposes.  But in my opinion, for someone doing something less intensive with the RadPropertyGrid control that it would likely be very handy to have a property where you could override the style for the TextBlock that displays DisplayName, or could at least make the text bold.  Just my two cents.

Thanks for your help,

-Ari
0
Maya
Telerik team
answered on 04 Oct 2012, 07:11 AM
Hi Ari,

I am really glad to see that you have found the most appropriate for your case solution. Considering editing display name part of the property definition, we will definitely consider it so that we could provide easier way for editing its look and feel. Thank you for your feedback. I have added Telerik points to your account.

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PropertyGrid
Asked by
Ari
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ari
Top achievements
Rank 1
Share this question
or