Error on rowspan

I keep getting this error:

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.

Can anyone tell me what do i do wrong?

setRowspan() method has rowID as a first parameter but not the row index.
You should modify your function and set the id of needed row:

mygrid.setRowspan("rowId",2,3);

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');

Unfortunately the issue cannot be reconstructed locally.

Please, provide a complete demo to reconstruct the issue.
You can find tutorial how to create complete demo here docs.dhtmlx.com/doku.php?id=othe … leted_demo

Here is the code that i use to regenerate the erro, and the screenshot of error. I use dhtmlxgrid version 2.5 pro.

<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="en" />

	<link rel="STYLESHEET" type="text/css" href="dhtmlx/dhtmlxgrid/dhtmlxgrid.css">
	<link rel="stylesheet" type="text/css" href="dhtmlx/dhtmlxgrid/skins/dhtmlxgrid_dhx_green.css">
    <script type="text/javascript" src="dhtmlx/dhtmlxcommon.js"></script>
    <script type="text/javascript" src="dhtmlx/dhtmlxgrid/dhtmlxgrid.js"></script>
    <script type="text/javascript" src="dhtmlx/dhtmlxgrid/dhtmlxgridcell.js"></script>
    <script type="text/javascript" src="dhtmlx/dhtmlxgrid/ext/dhtmlxgrid_rowspan.js"></script>

<script language="javascript">
    var grid;
    function initGrid() {

        if (!grid) {
            grid = new dhtmlXGridObject("dataGrid");
            grid.setImagePath("dhtmlx/dhtmlxgrid/imgs/");
            grid.setHeader("Product,Code,Price, Tax");
            grid.setColTypes("ro,ro,ro,ro");
            grid.setColSorting("str,str,str,str");
            grid.setColAlign("left,left,left,left");
            grid.setSkin("dhx_green");
            grid.enableAutoWidth(true);
            grid.enableAutoHeigth(true);
            grid.enableRowspan(true);
            grid.init();
        }

        loadData();
    }
    function loadData() {
        
        var data = [["A","Axyz",100,10],
                    ["B","Bxyz",150,15],
                    ["C","Cxyz",200,20],
                    ["D","Dxyz",75,7.5],
                    ["E","Exyz",50,5],
                    ["F","Fxyz",300,30]];
        grid.parse(data,'jsarray');
        grid.setRowspan(grid.getRowId(1),2,2);
    }

//-->
</script>
</head>

<body onload="initGrid()">
<form id="content" style="font-family:Tahoma;font-size:12px;" runat="server">
    <div id="dataGrid" width="500px" height="500px"></div>
</form>
</body>	
</html>


I forgot to include dhtmlxgrid files that i use in previous post
Demo.zip (335 KB)

Fixed dhtmlxgrid_rowspan.js is attached,it must resolve the issue.
The same fix will be included in next version of the grid.

Fixed dhtmlxgrid_rowspan.js is attached

Where?

Sorry, somehow missed it :blush:
Not it is attached for sure
dhtmlxgrid_rowspan.zip (1.52 KB)

Thanks a lot. it works now!!!