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

Label column width to minimum

1 Answer 128 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Maxim
Top achievements
Rank 1
Maxim asked on 24 Apr 2012, 09:56 AM

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!

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 25 Apr 2012, 03:21 PM
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 >>

Tags
PropertyGrid
Asked by
Maxim
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or