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

[Solved] Proportionally size column widths

1 Answer 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 14 Mar 2008, 05:12 PM
Can RadGrids size the columns depending on the amount of data in them. I can only get them to size at equal proportions. Would I am trying to do is have a column that has 100 characters (in one of the rows) automatically be roughly twice as big as a column with only 50 characters (in one of the rows).
Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 17 Mar 2008, 03:52 PM
Hi Jay,

RadGrid supports auto layout in the same way as the regular MS GridView control:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/Migration/DefaultCS.aspx

Additionally, the control supports this mode with scrolling and static headers enabled (since the default value for the TableLayout property of the master/detail tables is Auto). Thus your grid size should depend on the column cells content (header or data cells dimensions).

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Jay
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or