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

RadGrid is widening in Firefox 3.0.5

2 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 22 Dec 2008, 04:31 PM
Hi, All!

There is a grid layout problem with RadGrid in Firefox. Layout was set to fixed: <MasterTableView TableLayout = "fixed" >, each column had a fixed width in pixels: <telerik:GridBoundColumn HeaderStyle-Width="140px" >, grid width wasn't specified. It works fine in IE, but in FF the columns were scaled (widened) to the size of the container. It is strange, because the HTML looks properly:

<TABLE class=MasterTable_WebBlue id=ctl00_DefaultContent_Form2_GrdExtra_ctl00_Header style="TABLE-LAYOUT: fixed; OVERFLOW: hidden; BORDER-COLLAPSE: collapse; TEXT-OVERFLOW: ellipsis; empty-cells: show" cellSpacing=0 border=0>
<COLGROUP>
   <COL width="200px">
   <COL width="200px">
   <COL width="50px">
</COLGROUP>

It seems, some initializing script works improperly. Who have faced with widening in FF too?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 23 Dec 2008, 06:39 AM
Hello Alexey,

When the following is true:

+ TableLayout="Fixed"
+ scrolling with static headers is enabled
+ the sum of all column widths is less than the width of RadGrid
+ no width for the master table is specified

In this case in Firefox all columns expand proportionately, so that they fill up the available space. This behavior is expected. If you want the column widths to be preserved as you have set them, please set a width to the master table view, which is equal to the sum of all column widths. Alternatively, reduce the RadGrid width to match the sum of all column widths.


Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alexey
Top achievements
Rank 1
answered on 23 Dec 2008, 04:00 PM
Thank you: setting MasterTableView width is helpful, even to a value much fewer, than the summary columns width.
Tags
Grid
Asked by
Alexey
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Alexey
Top achievements
Rank 1
Share this question
or