Uncaught TypeError: cannot read property “nodeName” of undefined.
When i trace back to the source, it comes from function:
dtmlXMLLoaderObject.prototype.doXPath at line if (docObj.nodeName.indexOf(“document”) != -1), where docObj is undefined. This function is called from event onXlE in dhtmlxgrid_rowspan.js. My grid is loaded successfully even with that error, howerver, im unable to merge the cells i want.
I have enable row span in my setup: grid.enableRowspan(true); and use grid.setRowspan(0,2,3) to merge cells.
It doesnt work at all. Im getting the error inside grid setup function. It looks like thisoks like this
grid = new dhtmlXGridObject(container);
grid.setImagePath("Scripts/dhtmlx/dhtmlxgrid/imgs/");
grid.setHeader("Product,Code,Price, Tax");
grid.setColTypes("ro,ro,ro,ro");
grid.setColSorting("str,str,str,str");
grid.setSkin("dhx_blue");
grid.enableAutoWidth(true);
grid.enableRowspan(true); // <---- Error here. It works fine if i comment out this line, but merge operation doesnt have any effect to the cells
.....
grid.init();
.....
grid.parse(data,'jsarray');