Label column width to minimum

2 posts, 1 answers
  1. Maxim
    Maxim avatar
    12 posts
    Member since:
    Mar 2012

    Posted 24 Apr 2012 Link to this post

    We have a grid with several properties. Length of each "Display name" is different: there are short names like "Step" and long names like "Upper alignment style". I want the "Display name" column (property name column) to auto-size according to the longest property name in the grid.
    Currently I tried two options:
    1. specify  LabelColumnWidth to Auto, but this gives row-based auto-sizing, but I want that that all rows have the same width (looks like a single column)
    2. not specify anything, the width is set to ~200px that's too long for me

    Can you please suggest a proper way to have auto-sized width for the whole column?

    Thank you!

     

  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 25 Apr 2012 Link to this post

    Hello Maxim,

    You can take a look at this forum thread for a reference. 

    Greetings,
    Maya
    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
Back to Top