View Full Version : Grid appears on firefox, but not in IE
rodiniz
16 Jan 2007, 5:37 AM
Hi Jack I have updated the scripts in my site to yui 0.12 and yui-ext 0.33 and I am having a very weird problem.Go to
http://www.rodrigodiniz.qsh.eu/queryanaliser.aspx
and execute any query..in firefox everything works fine but in IE the grid does not appear..
any ideas?[/url]
BernardChhun
16 Jan 2007, 5:59 AM
I have the same problem with my grid...
this error message:
this.config[...].hidden is null or is not an object
I've been waiting for the new grid since then.
EDIT: I just checked and your grid doesn't have the same error as mine. In fact, it doesn't ring a bell in IE at all. :?
BernardChhun
18 Jan 2007, 5:30 AM
Just curious if anyone else has got the same problem as us here... :?
EDIT: I've just finished Office 2003's installation to have a lightweight script debugger in IE. Contrary to my believes, there is one! :)
here's the function that kills IE during the grid's rendering:
isHidden: function(colIndex){
return this.config[colIndex].hidden;
}
this.config is an array containing the headers and its properties.
colIndex is equal to 10 when my app is trying to render the grid.
the 10th header definitely exists and I don't see why it should die there.
that function is inside YAHOO.ext.grid.DefaultColumnModel.
what's wrong with it?
Bernard
tryanDLS
18 Jan 2007, 7:41 AM
Did you try wrapping that property access in a try/catch to see the error. If you debug, is 'this' pointing to where you think it is? You say the 10th entry exists - is that what you think, or do you see it when you stop in the debugger?
BernardChhun
18 Jan 2007, 10:27 AM
hey thanks for answering tryanDLS :)
Did you try wrapping that property access in a try/catch to see the error.
yea thats what I've been doing until now. :wink:
If you debug, is 'this' pointing to where you think it is?
Until now it has always pointed to the YAHOO.ext.grid.DefaultColumnModel object.
You say the 10th entry exists - is that what you think, or do you see it when you stop in the debugger?
I can see the local variables and their values in the lower panel of the debugger. It definitely screws at the 10th column.
what's really weird till now is that the error keeps on moving since I've inserted try/catches in the functions. I'll keep on doing that until I find out what the hell is happening.
thanks again.
tryanDLS
18 Jan 2007, 10:41 AM
You indexes aren't off by 1 are they? The 10th col would be index 9 since the array is 0-based.
BernardChhun
18 Jan 2007, 11:22 AM
You indexes aren't off by 1 are they? The 10th col would be index 9 since the array is 0-based.
yea thats what bugging me off... My column model definition only had 9 items and I've kept wondering why the colIndex kept on going up until 10.
I've finally figured out that my column header definition had an extra comma at the end :!:
var colModel = new YAHOO.ext.grid.DefaultColumnModel([
{header: '0', width: 25, sortable: true},
...,
{header: '1', width: 0}/*HERE!!! --> */ , /* <-- HERE!!! */
]);
removing that $%$@@ finally corrected the rendering in IE.
thanks again for the helping hand and it was my fault after all...thats it I hate all commas!
:evil:
rodiniz
19 Jan 2007, 7:27 AM
Well.. my problem its not that... so I am still struggling
choni
22 Jan 2007, 8:59 PM
Well, I too have problemas with Grids and IE, in my case, I have a page bar, when the grid is empty, the bar appears at the top, right below the headers bars, when I populate de grid with some data, the paging bar doesnt actually stretches to fit in the container of the wrid, I mean, it doesnt snap to the bottom.
tryanDLS
22 Jan 2007, 9:03 PM
If you use a GridPanel, the toolbar will remain at the bottom of the panel regardless of the number of rows.
choni
23 Jan 2007, 7:14 PM
Thanks man!! I worked pretty well, you just saved my day!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.