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

LabelColumnWidth = GridLength.Auto

5 Answers 167 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 30 Nov 2011, 12:04 AM
Hello,

When I set LabelColumnWidth to GridLength.Auto, each row's label is sized minimally for that row, resulting in an uneven column.  See the attached image.  What I'd expect is that the column gets sized to the maximum of all the rows' minimal sizes, and the column line stays whole.

Will this be supported in the future?  Is there a recommended workaround?

5 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 30 Nov 2011, 11:31 AM
Hello Ryan,

Unfortunately such a scenario is not supported natively with the current version of RadControls, as
each PropertyGridField has its label width individually bound to this property. However, we plan to revise this behavior in some of our future releases. The only workaround that comes to my mind is to introduce a property in you view model that keeps track of the current maximum label width and bind LabelColumnWidth to it.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Timothy Lee Russell
Top achievements
Rank 2
answered on 02 Dec 2011, 07:07 AM
Hand tweaking the width in pixels worked for me.  But I agree that a LabelWidth property on the overall grid should set all the widths to the largest item in the list.
0
Timothy Lee Russell
Top achievements
Rank 2
answered on 02 Dec 2011, 07:07 AM
Hand tweaking the width in pixels worked for me.  But I agree that a LabelWidth property on the overall grid should set all the widths to the largest item in the list.
0
Timothy Lee Russell
Top achievements
Rank 2
answered on 02 Dec 2011, 07:07 AM
Hand tweaking the width in pixels worked for me.  But I agree that a LabelWidth property on the overall grid should set all the widths to the largest item in the list.
0
Timothy Lee Russell
Top achievements
Rank 2
answered on 02 Dec 2011, 07:22 AM
Sorry, telerik website gave me an error -- and I thought pounding my head on the submit button was a good idea. You can understand once, but twice?  Sorry...
Tags
PropertyGrid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Timothy Lee Russell
Top achievements
Rank 2
Share this question
or