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

Tweaking the RadPropertyGrid

8 Answers 267 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 18 May 2012, 05:26 PM
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!

8 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 22 May 2012, 12:17 PM
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 >>
0
Simon
Top achievements
Rank 1
answered on 22 May 2012, 06:17 PM
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
0
Bill
Top achievements
Rank 1
answered on 11 Oct 2012, 04:51 PM
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
0
Ivan Ivanov
Telerik team
answered on 16 Oct 2012, 03:57 PM
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.

0
Rowen
Top achievements
Rank 1
answered on 02 Aug 2013, 03:02 AM
Regarding point 3, there is now a property called FieldIndicatorVisibility which can be set to collapsed directly on the RadPropertyGrid.
0
Evan
Top achievements
Rank 1
answered on 26 Jul 2018, 03:35 PM
Hey I was noticing there is no FieldIndicatorVisibility option in the WinForms version of the product. Would it be possible to add this into the WinForms version as well?
0
Stefan
Telerik team
answered on 27 Jul 2018, 02:25 PM
Hello Evan,

This forum thread is the UI for WPF RadPropertyGrid. As we are constantly trying to keep our support communication consistent and in order to receive the most appropriate assistance, I would kindly ask you to post your inquiry in the relevant forum section.

Thank you in advance for your understanding and cooperation.

Regards,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Frank
Top achievements
Rank 1
answered on 21 Oct 2019, 05:11 AM
I agree with that.
Tags
PropertyGrid
Asked by
Simon
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Simon
Top achievements
Rank 1
Bill
Top achievements
Rank 1
Rowen
Top achievements
Rank 1
Evan
Top achievements
Rank 1
Stefan
Telerik team
Frank
Top achievements
Rank 1
Share this question
or