Make the DisplayName bold

4 posts, 0 answers
  1. Ari
    Ari avatar
    14 posts
    Member since:
    Jul 2012

    Posted 25 Sep 2012 Link to this post

    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
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. Ari
    Ari avatar
    14 posts
    Member since:
    Jul 2012

    Posted 03 Oct 2012 Link to this post

    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
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 04 Oct 2012 Link to this post

    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.

Back to Top