Posted 20 November 2017, 4:06 am EST
Hello,
I’ve noticed that if I set allowAddNew to true and try to copy/paste cells from the template row in a FlexSheet, an error occurs (“Cannot read property ‘dataItem’ of undefined”). It seems that in the GridPanel.prototype.getCellData function in wijmo.grid.js, var row = this._rows does not include the template row. So when row.dataItem is executed, an error is thrown. I believe it would be preferable for the code to handle this scenario instead of throwing an error and canceling the entire paste operation.
Furthermore, starting in build 5.20172.359, this error breaks the FlexSheet so that the user cannot interact with it anymore (e.g. cells cannot be selected).
Holly