Intermittent Load Error in IE8

Hi

I have a problem with data grid loading in IE8 only. Unfortunately this problem is intermittent and works most of the time using the same content which suggests the xml grid content is ok.

Invalid argument. dhtmlx.js, line 434 character 126

The grid init is as follows:

function doInitGrid(targetURL) {

		dataGrid = new dhtmlXGridObject('dataGrid_container');
		dataGrid.setImagePath("images/dhtmlx-imgs/grids/");	
		dataGrid.setSkin("light");
		dataGrid.enableAlterCss("even_row","odd_row");		
			
		dataGrid.setHeader(",${hdrNodeId},${hdrBranchId},${hdrNodeType},${hdrColumn},${hdrStreet},${hdrCity}");
		dataGrid.attachHeader("#rspan,#text_filter,#text_filter,#combo_filter,#text_filter,#text_filter,#combo_filter");						
		dataGrid.setInitWidths("30,90,90,90,117,290,120");
		dataGrid.setColAlign("center,left,left,left,left,left,left");
		dataGrid.setColSorting("na,int,int,str,str,str,str");
		dataGrid.setColTypes("ra,rotxt,rotxt,rotxt,rotxt,rotxt,rotxt");
										
		dataGrid.enableAutoWidth(true);
		dataGrid.enablePaging(true, 30, 10, "paging-area", true);
		dataGrid.setPagingSkin("bricks");
		dataGrid.attachEvent("onXLE", function(grid_obj,count){doneLoading()}); 														

		dataGrid.attachEvent("onBeforeCMove",function(oind, nind){
		    if (oind == 0 || nind == 0)  return false;
		    return true;
		});
		//second parameter need to be updated , according to your grid settings
		dataGrid.enableColumnMove(true, "false,true,true,true,true,true,true"); 

		//put focus on select button when radio button is selected
		dataGrid.attachEvent("onCheck", function(rId,cInd,state){
			document.getElementById("selectNodeButton").focus();
			SELECTED_RADIO_BUTTON = rId; //save for later use, quicker than iterating through radio buttons for selected
		});
		
		dataGrid.init();

		//load the data			
		dataGrid.clearAndLoad(targetURL);
		
		<%-- the filters must be refreshed, as we add the data after the headers are initialised we need to make sure they pick up the new values --%>
		dataGrid.refreshFilters();
		
	}//doInitGrid

Such issue may occur if you not defined columns labels, width or alignment for all columns.
Please check if following line

dataGrid.setHeader(",${hdrNodeId},${hdrBranchId},${hdrNodeType},${hdrColumn},${hdrStreet},${hdrCity}");

Always returns labels for all columns.

Also try to use   as label of first column.

Thanks for the quick reply. I have added   for the 1st column. All other columns have a header, width etc.
The problem seems to occur fewer times but it still happens about 30% of page loads.

dataGrid.setHeader(" ,${hdrNodeId},${hdrBranchId},${hdrNodeType},${hdrColumn},${hdrStreet},${hdrCity}");
dataGrid.attachHeader("#rspan,#text_filter,#text_filter,#combo_filter,#text_filter,#text_filter,#combo_filter");
dataGrid.setInitWidths(“30,90,90,90,117,290,120”);
dataGrid.setColAlign(“center,left,left,left,left,left,left”);
dataGrid.setColSorting(“na,int,int,str,str,str,str”);
dataGrid.setColTypes(“ra,rotxt,rotxt,rotxt,rotxt,rotxt,rotxt”);

All items have been set for 7 columns. ${value} represent a constant in a java resource file which is always loaded.

What version of dhtmlxGrid do you use? Can you provide complete demo where we can reproduce this issue? docs.dhtmlx.com/doku.php?id=othe … leted_demo