Ext


Go Back   Ext JS Forums > Ext JS Community Forums (2.0) > Ext 2.x: Help

Reply
 
Thread Tools
  #1  
Old 01-21-2008, 12:19 AM
putty's Avatar
putty putty is offline
Ext User
 
Join Date: Jan 2008
Location: Queensland, Australia
Posts: 112
putty is on a distinguished road
Default IE Grid width error

I'm having problems with grid width in IE, in firefox the grid is set to the correct size however in IE it stretches 5 times across the screen.

I am using the Ext.grid.TableGrid class that extends Ext.grid.GridPanel

this is my code to create the grid

Table
<table id="RelatedRntitiesGrid" style="width:400px">
        <thead>
            <tr>
                <th>Gis</th>
                <th>Type</th>
                <th>Name</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>32</td>
                <td>Nationa Parks</td>
                <td>Gloucester Island National Park</td>
            </tr>
        </tbody>
    </table>
Javascript
// create note grid
        var RelatedRntitiesGrid = new Ext.grid.TableGrid("RelatedRntitiesGrid",{
            groupField:'Type',
            sortInfo:{field: 'Name', direction: "ASC"},
            width:600,
            height:300
        });
        RelatedRntitiesGrid.render();

This problem also accurse in the example (grid/from-markup.html) that ships with Ext

Dose anyone know a fix for this problem?

Thanks,
Levi
Reply With Quote
  #2  
Old 01-31-2008, 11:41 AM
Joshua.Suereth Joshua.Suereth is offline
Ext User
 
Join Date: Jan 2008
Posts: 2
Joshua.Suereth is on a distinguished road
Default Is forceFit set to true?

We faced a similar problem where IE was messing up the widths of a GridPanel. I'm unfamiliar with the TableGrid, however here was our solution:

 var myGrid = new Ext.grid.GridPanel({
     ...
      viewConfig: { forceFit: true },
     ...
});
should be changed to
 var myGrid = new Ext.grid.GridPanel({
     ...
      viewConfig: { autoFill: true },
     ...
});
Otherwise you get very strange behavior in IE. Hope that helps.
Reply With Quote
  #3  
Old 02-07-2008, 05:42 PM
putty's Avatar
putty putty is offline
Ext User
 
Join Date: Jan 2008
Location: Queensland, Australia
Posts: 112
putty is on a distinguished road
Default

Thanks for replying,
I think the problem was with TableGrid, I spent the time and manually upgraded all our old tables to ExtJS grids without the use of TableGrid and had no problems. Took me a good day and a half to do this but it was worth it.

Thanks,
Levi
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 08:03 PM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.