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

Header Width and Column Width

2 Answers 246 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 12 Apr 2012, 07:05 AM
I have a RadGrid with the property UseStaticHeaders = true for freezing the header row while scrolling.
but when i set this property to true Width of Headers does not match the corresponding Column Header Width while setting that property to false keeps headers and columns width match. How can i have frozen headers matching columns width?

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Apr 2012, 04:56 PM
Hi Ali,

Can you please verify that you have set HeaderStyle-Width property for grid columns which is required when static headers are enabled? Also, note that it is not recommended to set ItemStyle-Width.

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.
0
Ali
Top achievements
Rank 1
answered on 14 Apr 2012, 06:11 AM
Hi Pavlina,
Thank you. My problrm is solved. The point was to override "rgHeaderDiv" class in my css and set the padding to 0px.
It assumes 7 pixels for the left padding for the header row by default.
Tags
Grid
Asked by
Ali
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ali
Top achievements
Rank 1
Share this question
or