I am experiencing an issue when scrolling my spreadsheet. The sheet has 204 rows, but the last 135 are marked as hidden, leaving on 69 visible. When the user scrolls down (using the keyboard down arrow, or the mouse wheel) the active cell border gets misaligned.
It starts off working correctly, but by row 50 it gets off like this. If the user continues to the bottom, the scrolling stops prematurely at row 66 instead of 69 (the last non-hidden row),
I have attached the json object that I load using openFromJson(). Have I somehow jacked up the json or is this a bug?
Hi John,
We have checked your JSON data. But, when importing your JSON data, it is not rendered. We need to validate your JSON data. Before proceeding further, could please share below details,
Share your issue replicating file in .xls/.xlsx format.
Share the Syncfusion version you are using.
Share the customization codes you are using regarding spreadsheet.
Share the replication steps/ video demonstration to reproduce this issue.
Based on the above information, we will check and update promptly.
Regards,
Gayathri K
I have attached an example that illustrates part of the problem. As I was extracting the code and data from my main project to build this example, other issues began showing up. If you open the HTML file attached, and then use the down arrow to scroll near the bottom, then scroll back to the top, row 5 (and others) will be missing.
If you happen to scroll all the way to the bottom, it will go past the last visible row (69) and then becomes stuck (the up/down arrows no longer work).
I screen recorded my test, also attached.
This example doesn't show the original issue with the cell border being misaligned, but there is something wonky going on when there are hidden rows involved.
Note: The test data has 204 rows, with rows 70-204 marked as hidden.
Adding additional info, please read my previous reply...
Further investigation on my end shows a scrolling issue, even without loading data. I have attached a simpler example along with a screen recording to show my results..
I simply load the page then attempt to scroll to the last row (or past the last row) using the down arrow. Once the active cell reaches the bottom, the arrow keys stop working. I can click in the spreadsheet, but the arrow keys no longer move the active cell.
var SS = new ej.spreadsheet.Spreadsheet({
height: 800,
scrollSettings: {
isFinite: true
}, sheets: [{
name: "Sheet1",
rowCount: 100,
colCount: 26
}],
});
SS.appendTo('#SS');At times, the problem is intermittent. Sometimes it breaks when attempting to scroll too far to the right. Something is amiss.
Attachment: scrollissue2_d042dc8.zip
Hi John,
We are validating your reported issue by using your code snippets at our end. So, we will check and update further details within May 2nd ,2022.
Regards,
Gayathri K
Hi John,
We can reproduce your reported issue in our end. We have logged a bug report for the issue. You can track its status from the below feedback link,
Feedback: https://www.syncfusion.com/feedback/34651/keyboard-selection-issue-in-finite-mode
The fix will be available in our upcoming patch release which is scheduled for May 25th, 2022.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Regards,
Gayathri K
I cannot follow the feedback link above. I get an access denied message. Are we still on track for resolution this week?
- John
Hi John,
We are sorry for the delay.
We have fixed your reported scenario. But we need to ensure more test cases for this issue. So, we are unable to move into previous patch. So, we have planned to include the fix for your reported issue in our upcoming patch release which is scheduled for June 1st ,2022 and we appreciate your patience until then.
Please log off and log in with your Syncfusion credentials
once again and let us know if you still getting access denied.
Regards,
Gayathri K
Hi John,
We are glad to announce that our weekly patch release (20.1.58) is rolled out. And we have included the fix for the reported issue in this release. So, kindly upgrade your package versions to the latest to avail of these changes (20.1.58).
Package: https://www.npmjs.com/package/@syncfusion/ej2-spreadsheet/v/20.1.58
Feedback Portal Link: https://www.syncfusion.com/feedback/34651/keyboard-selection-issue-in-finite-mode
Please let us know if you need further assistance on this.
Regards,
Gayathri K
I have tested version 20.1.58 with mixed results. In some cases the scrolling has been corrected. However I am still running into issues.
I have attached scrollissue3.html (zipped) that demonstrates the remaining issue. To test, open the file and click the SET ROWCOUNT=69 button, then scroll to bottom with down arrow key.
Please note, that the row headers are not displayed here on purpose, so please don't confuse them them the numbers in the first column.
I have noticed that this error can be partially avoided by changing the code below to call appendTo() before setting the visibility of the Ribbon and FormulaBar.
var SS = new ej.spreadsheet.Spreadsheet({
height: 800,
scrollSettings: {
isFinite: true
}
});
SS.showFormulaBar = false; //calling this before appendTo will cause scroll issue
SS.showRibbon = false; //calling this before appendTo will cause scroll issue
SS.appendTo('#SS');
SS.openFromJson({file: data.jsonObject});
Is there a reason why that is? Even with making that change, I occasionally lose functionality of the arrow keys when scrolling around near the bottom.
Hi John,
Query: I have noticed that this error can be partially avoided by changing the code below to call appendTo() before setting the visibility of the Ribbon and FormulaBar.
It's important to note that the best approach to use the Spreadsheet properties is to define them after the component has been appended.
Query: I occasionally lose functionality of the arrow keys when scrolling around near the bottom.
We are able to replicate the issue in your sample. We suspect that the issue is due to the JSON is created in old version. Please confirm that you have created the JSON data in latest version (20.1.58). We suggest you use our latest version to save data as JSON and load JSON data. i.e., save your data as JSON and use that saved JSON instead of the old JSON data to load in spreadsheet. Please check with the latest version and let us know if you are facing same issue.
Regards,
Gayathri K
Scrolling issues are happening even without using openFromJSon. There's some bugginess still happening.
Strangely, if you set the rowCount on a sheet when the ribbon and formula bar are hidden, the last couple of rows are blank and scroll issues start happening.
My attached example creates a spreadsheet with 200 rows and 40 columns using local data on create.
//create spreadsheet 40x200
var SS = new ej.spreadsheet.Spreadsheet({
height: 800,
showFormulaBar: false, //REMOVE THIS LINE
showRibbon: false, //AND THIS LINE AND IT WORKS
sheets: [{
ranges:[{dataSource: data}],
columns: cols,
colCount: 40,
rowCount: 200
}],
scrollSettings: {isFinite: true}
});
SS.appendTo('#SS');
After the spreadsheet displays, a button click sets the rowCount to 69:
button onclick="SS.sheets[0].rowCount = 69">SET ROWCOUNT=69</button>
If you then scroll to the bottom, rows 68 and 69 are blank. This does NOT happen if the ribbon and formula bars are visible.
Also, if the row headers are not visible, the sheet appears to have only 67 rows instead of 69.
Attachment: scrollissue4_f906c8b3.zip
Hi John,
We have checked your reported issue and need to validate more on this, so we will update you the further details on June 8th, 2022. We appreciate your patience until then.
Regards,
Sangeetha M
Hi John,
Query 1:if you set the rowCount on a sheet when the ribbon and formula bar are hidden, the last couple of rows are blank
We have included the fix for the reported issue[Rows blank issue] in our 20.1.60 weekly patch release. So, we suggest you upgrade our Syncfusion Spreadsheet packages and assemblies to our latest version to resolve this issue on your end.
https://cdn.syncfusion.com/ej2/20.1.60/dist/ej2.min.js
Query 2: scroll issues start happening.
We are able to replicate the keyboard navigation issue at our end, we will check and update further details within June 16th,2022.
Regards,
Gayathri K
Hi John,
We have logged a bug report for the issue(Keyboard navigation issue). You can track its status from the below feedback link,
Feedback: https://www.syncfusion.com/feedback/34651/keyboard-selection-issue-in-finite-mode
The fix will be available in our upcoming patch release which is scheduled for the middle of July 2022.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Regards,
Gayathri K
Hi John,
We are glad to announce that our weekly patch release (20.2.38) is rolled out. And we have included the fix for the reported issue in this release. So, kindly upgrade your package versions to the latest to avail of these changes (20.3.38).
Package: https://www.npmjs.com/package/@syncfusion/ej2-spreadsheet
Feedback Portal Link: https://www.syncfusion.com/feedback/34651/keyboard-selection-issue-in-finite-mode
Please let us know if you need further assistance on this.
Regards,
Sangeetha M