LabelColumnWidth = GridLength.Auto

6 posts, 0 answers
  1. Ryan
    Ryan avatar
    2 posts
    Member since:
    Oct 2011

    Posted 29 Nov 2011 Link to this post

    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?

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 30 Nov 2011 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Timothy Lee Russell
    Timothy Lee Russell avatar
    20 posts
    Member since:
    Feb 2003

    Posted 02 Dec 2011 Link to this post

    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.
  5. Timothy Lee Russell
    Timothy Lee Russell avatar
    20 posts
    Member since:
    Feb 2003

    Posted 02 Dec 2011 Link to this post

    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.
  6. Timothy Lee Russell
    Timothy Lee Russell avatar
    20 posts
    Member since:
    Feb 2003

    Posted 02 Dec 2011 Link to this post

    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.
  7. Timothy Lee Russell
    Timothy Lee Russell avatar
    20 posts
    Member since:
    Feb 2003

    Posted 02 Dec 2011 Link to this post

    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...
Back to Top
UI for WPF is Visual Studio 2017 Ready