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

Need help with RadGrid column size

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 21 Nov 2011, 07:29 PM
I want the column of my radgrid to be the width of the content. I have many columns so there is always a horizontal scrollbar, which is fine. Table  Layout is set to auto. UseStaticHeaders is set to true. In IE8 the column are way bigger than they need to be. They are about twice the width of the content. When I use IE7 or IE8 in compatibility mode the columns are the correct width. When I UseStaticHeaders to false, the columns are the correct width.  Something is messed up with IE8 and static headers. Using Q1 2010 SP2

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Nov 2011, 09:19 AM
Hi Matt,

Note that when scrolling is enabled and UseStaticHeaders is True, the grid columns should declare HeaderStyle.Width. Therefore I suggest that you try setting fixed width to your columns through HeaderStyle.Width and let me know how it goes.

Greetings,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Matt
Top achievements
Rank 1
answered on 22 Nov 2011, 04:36 PM
I don't want fixed width. I have many columns and you wouldn't be able to see everything without a horizontal scroll bar. I want a static header and autosize columns
0
Pavlina
Telerik team
answered on 23 Nov 2011, 10:36 AM
Hello Matt,

We will need a sample page in order to reproduce the problem and see what causes it. Thank you in advance.

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Matt
Top achievements
Rank 1
Share this question
or