Tweaking the RadPropertyGrid

6 posts, 1 answers
  1. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 18 May 2012 Link to this post

    Hello,

    I need your help for a few RadProperty tweaks:

    1) I auto-generate my property grids from all sorts of different objects. I need to set a data template that will help me "word wrap" all the string properties by default

    2) I sometimes need to hide the "property names" section, how can I achieve that?

    3) I want to hide the grey block to the left of the "property names" section, how can this be achieved?

    I have attached a screenshot to better explain my requirements.

    Many thanks!
  2. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 22 May 2012 Link to this post

    Hi,

    I will address the listed issue following their original order:
    1) Setting a DataTemplate with a TextBox that has its TextWrapping property to "Wrap" should do the trick. However, in order to make it work properly you will have to specify either Width, or MaxWidth value to it.
    2) A possible approach would be to set RadPropertyGrid's LabelColumnWidth property to 0. Would you please test it in your scenario and let us know whether it is working for you?
    3) The easiest way to accomplish this is to modify PropertyGridField's ControlTemplate in Expression Blend. Please, let us know in case you need some additional assistance with this.

    Greetings,
    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 22 May 2012 Link to this post

    Hello Ivan,

    1) Your suggestion did the trick, thank you!

    2) Setting the label column width to 0 does hide the label column, unfortunately, you can still expand it with your mouse. 

    3) I will need to brush up with my skills with Blend for this one. I will give it a try when I have a few minutes.

    Thanks for your answers!

    Simon
  5. Bill
    Bill avatar
    5 posts
    Member since:
    Mar 2012

    Posted 11 Oct 2012 Link to this post

    I also posted in a previous thread, but I am having problems editing the control template in blend. All my property definitions disappear. 

    I go into blend, right click my rad property grid control, select edit templates, edit a copy. At that point, any property definitions i have in my xaml dissapear.

    Is this by design?

    Thanks!

    Bill
  6. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 16 Oct 2012 Link to this post

    Hello,

    We have managed to reproduce this issue. It appears that Blend clears an ItemsControl ItemsSource binding. You can workaround this easily by setting ItemsSource={Binding} on FlatTemplate's  ItemsControl. We will need some more time to fix this, so for now, please stick to this approach. I will keep you notified of any updates.

    Regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Rowen
    Rowen avatar
    13 posts
    Member since:
    Aug 2008

    Posted 01 Aug 2013 Link to this post

    Regarding point 3, there is now a property called FieldIndicatorVisibility which can be set to collapsed directly on the RadPropertyGrid.
Back to Top
UI for WPF is Visual Studio 2017 Ready