Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
'style' is null or not an object error in IE8
posted

Hello,

I'm using UltraWebGrid from the latest release of asp controls (2009 Vol 2, Version=9.2.20092.1003) which is supposed to have all the IE8 issues resolved.

But here we go, once I click on the column headers as if I want to resize them (in IE8), the entire grid gets squished and JS "error on page" message appears: "'style' is null or not an object". Cause the grid to refresh and it comes back normal. 

Debugger brings me to some dynamic JS:

"setWidth",

function(width){   [...]

 

var c;

if (cg)  c = cg.childNodes[colIndex];

else    c = columns[i];

c.style.width = c1w + "px";

[...] }}

 

Line in bold is where it fails.

And the reason is that earlier in the same code "cells" collection declared like shown below is undefined!  Even though gn (grid name) and columns[i] have proper values.. 

 

var cells = igtbl_enumColumnCells(gn, columns[i]);

Turning on compatibility view for that page works fine, but I would really not want to go that route...  Any suggestions?