Hi Team,
we are facing an issue in version 1.10.1. we cannot upgrade to latest version as it has code-breaking changes.
issue - we call updateSettings() before creating a new row, but it totally ignore viewportRowRenderingOffset. This issue is with 1.10.1 but latest version works fine.
scenario: we apply a filter, limit the resultSet to only 1 row. Then add a new row and the call to updateSettings() is made but it renders all the rows. It should have restricted the resultSet to only 1 row + newly added row.
As this is fixed in new version, could you please help us getting a work-around in old version 1.10.1. Or if the fix is small, we could make it in handson library itself. do let us know the fix and fileName.
here is the code to reproduce the issue.
hot = new Handsontable(container, {
data: Handsontable.helper.createSpreadsheetData(10,2),
colHeaders: true,
rowHeaders: true,
contextMenu: [‘row_above’, ‘row_below’],
colWidths: 150,
dropdownMenu: true,
filters: true,
manualColumnMove: true,
beforeCreateRow: function(index, amount, source){
this.updateSettings({
viewportRowRenderingOffset: this.countRenderedRows(),
viewportColumnRenderingOffset: this.countCols()
});
},
});