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

Control Width and Height

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 30 Jan 2012, 09:03 PM
Hello,

I'm adding columns to my RadGrid during runtime, dynamically. The page size is set on the server side based on a configuration setting. The width should be dependent on the number of columns and size of each. I've enabled scroll bars using "AllowScroll=True" and "UseStaticHeaders=True". If the width of the grid stretches beyond the page, it displays a horizontal scroll bar.

1) Is it possible to set the column width to fit the content of the column?

2) Is it possible to have a floating width? This means, the width is dependent on the number of columns and size of each column. My grid currently looks great when it stretches the entire page width.



1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Jan 2012, 05:05 AM
Hello,

RadGrid has TableLayout property for each table (master or detail) which when set to 'Auto' auto-sizes the grid columns depending on their content.

Thanks,
Princy.
Tags
Grid
Asked by
Nathan
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or