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

[Solved] Padding in Grid (localhost vs. production server)

1 Answer 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PatD
Top achievements
Rank 1
PatD asked on 17 Nov 2009, 08:10 PM

Hello,

 

Something strange happens with the padding of the radGrid.

 

When I'm working locally (localhost) the width of my columns are equal to the specified width. That's correct. But when my project is published on my production server the effective column width is the width specified + the cell padding (about 8px). On my production server, my grid is swollen…

 

<HeaderStyle Width="165px" />

 

Localhost : the effective column width will be: 165px

Production server: the effective column width will be: 181px (Width="165px" + padding-left:8px + padding-right:8px)

 

Why this behavior?
Which scenario is correct?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Nov 2009, 12:52 PM
Hi PatD,

Probably IE8 works in standards mode locally, but in Compatibility mode (about the same as IE7) when opening the production site. IE6/7 and all other browsers apply column widths differently. I suggest you to set the column widths in such a way, that they look OK in both cases.

Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
PatD
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or