Forum


10:58

The demo works correctly in my browser, so either the demo uses an older version of JQ Grid (and the newer version is broken), or I don't have everything configured correctly.
The issue is, when resizing a column in a grid with forceFit enabled, the header row, the search/filter input header row, and the first row of the grid resize, but all of the other rows stay at thier original width. When you mouseover each of the rows, it jumps to where it supposed to be.
I'm using JqGrid v3.5.3, with Jquery 1.3.2, and Jquery UI 1.7.2, in Firefox 3.0.14 on Ubuntu 8.10. I'm using the "UI-Lightness" theme.
Here's My configuration:
jQuery("#grid_id").jqGrid({
url:'GridData.php',
datatype: 'xml',
mtype: 'GET',
colNames:['ID','Code', 'Make','Model','Total','Notes'],
colModel :[
{name:'ID', index:'ID', width:45},
{name:'Code', index:'Code', width:300},
{name:'Make', index:'Make', width:200, align:'right'},
{name:'Model', index:'Model', search:true, stype:'text', width:300, align:'right'},
{name:'Total', index:'Total', width:80, align:'right'},
{name:'Notes', index:'Notes', width:150, sortable:false}
],
pager: '#pager',
//altRows:true,
//gridview:true, // makes it faster, but with some cons
height:500,
autowidth:true,
forceFit:true,
rowNum:200,
hidegrid:false,
rowList:[5,200,500],
sortname: 'Code', // The default column to sort by
sortorder: 'asc', // the default sort direction
viewrecords: true,
caption: 'Item Master'
});
jQuery("#grid_id").navGrid('#pager',{view:true, del:false},
{}, // use default settings for edit
{}, // use default settings for add
{}, // delete instead that del:false we need this
{multipleSearch : true}, // enable the advanced searching
{closeOnEscape:true} /* allow the view dialog to be closed when user press ESC key*/
);
jQuery("#grid_id").filterToolbar();
});
Picture of the problem:
In the picture, I slid the divider between make and model to the right, to shrink the Make column. The first three rows adjusted, but the rest didn't move.
11:24

09/10/2009

This is looking more and more like a bug to me.
I created a new page, and used the code right from the demo page, complete with the Redmond theme. Still having this issue.
I'm guessing that something else on the demo page, unrelated to jqgrid (maybe the layout plugin?), is causing FireFox to rerender, so the bug does not show up there.
Can anyone else confirm this? Does anyone else have forcefit working correctly on thier site?
11:30

Moderators
30/10/2007

Hello,
Could you please send me a link to the problem. I will test it in with FireFox 3.0.x and Ubuntu 9.04.
Thanks
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:22

09/10/2009

Hi Tony,
You can find a working example here: http://www.rahilia.com/ForceFitTest/
The data is comming from a flat XML file, so it won't sort/paginate, but you should be able to see the rendering issue with column resize.
-Nick
12:57

Moderators
30/10/2007

Hello,
A missing DOCTYPE declararation make this not work. Also it does not work in FireFox 3.5 on Windows XP.
See installation instructions
http://www.trirand.com/jqgridw.....to_install
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
74 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66