Hi Team,
We are facing one issue with DHTMLX grid in version 5.02. which is working fine with 4.1.3 version.
Below is the screen shot, first we are adding one column (BRAND) (Image to demonstrate the selection has been attached) . Add function we are calling here is
dhtmlxGridObj.addRow(selectedID, [(dhtmlxGridObj.getRowsNum() == 0 ? 1 : 0), displayText]);
After that trying to delete this column without changing any other options. Delete function we are calling here is
function removeGridRow()
{
if(dhtmlxGridObj.getRowsNum() > 0)
{
if(dhtmlxGridObj.getSelectedRowId() != null)
{
dhtmlxGridObj.deleteSelectedRows();
}else
{
Confirm(gridRowsDeleteAllMsg,function(){
dhtmlxGridObj.clearAll();
},function(){});
}
}
}
After that if we try to add any of the column from left side, it is not working and we are not able to add any of the columns. And below is the console error log while calling the add() function.
Uncaught TypeError: Cannot read property ‘_childIndexes’ of null
at window.(anonymous function).cells (localhost:…dhtmlx/dhtmlx.js:9:852793)
at eXcell_ra.setValue (localhost:…dhtmlx/dhtmlx.js:9:875286)
at window.(anonymous function)._fillRow (localhost:…dhtmlx/dhtmlx.js:9:839416)
at window.(anonymous function)._addRow (localhost:…dhtmlx/dhtmlx.js:9:850263)
at window.(anonymous function).addRow [as _addRowClassic] (localhost:…dhtmlx/dhtmlx.js:9:851260)
at window.(anonymous function).dhtmlXGridObject.addRow (localhost:…dhtmlx/dhtmlx.js:9:1120705)
It seems Issue is some where with dhtmlxGridObj.addRow() or dhtmlxGridObj.deleteSelectedRows() functions from 4.1.3 to 5.0.2 versions. Also on deleting rows using clearAll(), we are not facing this issue. Could Someone help on this.