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