I have discovered an issue while using the colspan function described in the examples. I have defined some columns and init the dataview with the following code:
dataView = new Slick.Data.DataView();
dataView.getItemMetadata = function (row) {
var item = dataView.getItem(row);
// item could be null if no rows and grid option add row is enabled
if(item && item.__parent) {
var parent = grid.getCellNode(dataView.getRowById(item.__parent), 0).parentNode;
// do some other stuff
return {"columns" : {"__file" : {"colspan" : grid.getColumns().length - 1}}};
}
};
So if I now add new lines like following workflow, I am getting an issue with hidden rows:
Step 1: Drop some new rows
Step 2: Drop one new row on another to get __parent attribute filled and colspan applied
Step 3: Now if I drop another row above the previous targeted some rows are getting hidden. If I do that below the previous targeted row, everything is working fine
I am getting this exception in console:
"TypeError: Unable to get property 'lastChild' of undefined or null reference
at ensureCellNodesInRowsCache (/js/libraries/slick.grid.js:1741:11)
at getCellNode (/js/libraries/slick.grid.js:3077:9)
Dear Team,
I have discovered an issue while using the colspan function described in the examples. I have defined some columns and init the dataview with the following code:
So if I now add new lines like following workflow, I am getting an issue with hidden rows:
Step 1: Drop some new rows
Step 2: Drop one new row on another to get __parent attribute filled and colspan applied
Step 3: Now if I drop another row above the previous targeted some rows are getting hidden. If I do that below the previous targeted row, everything is working fine
I am getting this exception in console:
"TypeError: Unable to get property 'lastChild' of undefined or null reference at ensureCellNodesInRowsCache (/js/libraries/slick.grid.js:1741:11) at getCellNode (/js/libraries/slick.grid.js:3077:9)