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
85
Production issue - ajax sorting broken on ultrawebgrid 2008
posted

We are using a webgrid for sorting. It works in firefox. To make this issue weirder - it works from our work laptops (logged in or out of vpn) and from ALL of our home private machines it fails in IE 8 (some work though at work using the _exact_ same build of IE8.

Changing IE8 to Compatibility mode works if we do this manually in the browser. However sending down the header and/or meta tag for IE7 compatilbility does not resolve the issue.

 

So ScriptResource.axd returns many files.. however in one of them this method is causing a problem whenever we sort a column in the webgrid:

Message: 'childNodes.length' is null or not an object
Line: 4566

The offending method from Infragistics:

Note: this affects IE - firefox works OK.

function igtbl_removeState(stateNode)
{
    while(stateNode.childNodes.length > 0)
        igtbl_removeState(stateNode.childNodes[0]);
  
    if(stateNode.parentNode)
    {
  if(typeof(stateNode.parentNode.removeChild) != "undefined")
   stateNode.parentNode.removeChild(stateNode); // IE
  else
   stateNode.parentNode.removeNode(stateNode); // Firefox
    }
   
    // removeNode isn't enough to make the node deallocate in IE
    if(typeof(stateNode.outerHTML) != "undefined")
        stateNode.outerHTML = "";