Hello,
I'm getting an error whenever I try typing into a cell when I have allowScrolling = false. I have a very small spreadsheet, (5 cols x 25 rows) which fits nicely on screen. I don't want it to render with scrollbars as the parent div is sufficiently sized. But when I try to type into a cell, I get this:
ej2.min.js:10 Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft')
at e.positionEditor (ej2.min.js:10:15491435)
at e.startEdit (ej2.min.js:10:15481824)
at e.keyDownHandler (ej2.min.js:10:15480068)
at e.notify (ej2.min.js:10:626755)
at t.notify (ej2.min.js:10:670633)
at t.keyDownHandler (ej2.min.js:10:16160017)
This is how I am creating it:
summaryTemplate.Workbook.sheets[0].showHeaders = false;
summarySS = new ej.spreadsheet.Spreadsheet({
scrollSettings: {
isFinite: true,
enableVirtualization: false
},
showRibbon: false,
showFormulaBar: false,
showSheetTabs: false,
allowScrolling: false,
allowEditing: true,
height: '90%',
width: 'auto',
actionComplete: summarySSActionComplete,
created: function () {
(summarySSopenFromJson({file: summaryTemplate})
});
//Render initialized Spreadsheet component.
summarySS.appendTo('#summarySS');