at 2026 october 28 customer @jrf.att reported:
On 26.10.0 and reproducible at View Excel Files Online - Free Excel Viewer Tool | Aspose.Cells, if the default sheet for a workbook is called Sheet1, then it doesn’t render the sheet contents. On destroy, we’re also seeing the following error:
TypeError: Cannot read properties of undefined (reading 'delAllEvent')
at e.delWindowEvent (xspreadsheet.v2.js?v=26.10.0:12:1214617)
at Nm.delWindowEvent (xspreadsheet.v2.js?v=26.10.0:12:1554848)
at e.value (xspreadsheet.v2.js?v=26.10.0:21:1081102)
This looks to have a regression in 26.6.0. File to repro:
sheet1-crash.xlsx.zip (7.3 KB)
@jrf.att
Yes, there is a small change to the loadData API.
Please check the file in the GitHub demo:
github.com
/* wwwroot/js/gridjs-demo.js
--------------------------------------------------------------
Step‑by‑step script that:
1. Generates a UUID for the session.
2. Requests workbook JSON from the server.
3. Loads the JSON into GridJs Spreadsheet.
4. Configures server‑side update mode and image handling URLs.
-------------------------------------------------------------- */
// Utility: generate a RFC4122 version‑4 UUID
function generateUUID() {
// Simplified but sufficient for demo purposes
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
const r = Math.random() * 16 | 0,
v = c === 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
// ----------------------------------------------------------------
// Configuration constants – match the routes defined in GridJsController
// ----------------------------------------------------------------
This file has been truncated. show original
We need to specify the activeSheetName when calling loadData.
const activeSheetName = jsondata.actname;
//load and set active sheet
xs = x_spreadsheet('#gridjs-demo-uid', option) .loadData(sheets, activeSheetName);
....
//set active cell
if (xs.getActiveSheetName() == activeSheetName) {
xs.setActiveCell(jsondata.actrow, jsondata.actcol);
} else {
// Fallback – set A1 as active cell
xs.setActiveCell(0, 0);
}
The reference documentation is here:
Aspose Documentation

This article introduce the client javascript APIs or functions in GridJs.
Sorry for the inconvenience.
Please feel free to contact us if you encounter any issues.
customer @jrf.att reply:
Thanks @peter.zhou, I can do that as a workaround, but the docs you linked to still say that that field is optional. The sheet data displays for all cases except if the sheet is named “Sheet1” which is definitely a bug.
@jrf.att
actually we just optimize the code internally ,to reduce the multiple trigger of active sheet.
so we change the behavior.
if you want to keep the old style code.
you can also use:
xs = x_spreadsheet('#gridjs-demo-uid', option) .loadData(sheets);
const activeSheetName = jsondata.actname;
//make the second parameter to be true to trigger switch to the active sheet
xs.setActiveSheetByName(activeSheetName ,true);
customer @jrf.att replied:
@peter.zhou Reducing multiple triggers of the active sheet makes sense, but if I call loadData with new sheet data, it’s a bug if the sheet doesn’t get replaced. Rather than checking if the current sheet name matches, what about checking the sheet data by reference? I.e. if (spreadsheet.sheet.data === newData) <don't update sheet>. That would solve the issue of new data not being loaded if the sheet name is the same.
@jrf.att
you can compare sheet name,
xs.sheet.data.name
so please check our demo,
the code is most suggestive .
customer @jrf.att replied:
@peter.zhou Sorry, I may not have been clear enough. I’m not talking about comparing sheet name in my code, I’m talking about the gridjs-spreadsheet code. The bug is in setActiveSheet, xspreadsheet.js?v=26.10.0:21:1113383:
The sheet-name comparison is slightly further into that function, at line 21, column 1113480:
if (this.sheet.data.name === this.bottombar.dataNames[e] && !t) return this;
Here, e is the requested sheet index and t is the force flag. The code should not just be checking sheet names. If you had two sheets with the same name then you wouldn’t be able to change sheets unless you passed force=true. Excel doesn’t let you do this, but I created a synthetic spreadsheet with two sheets named “Data” and could reproduce the issue.
Instead of checking sheet names there, if the code checked the sheet data itself, the bug would be fixed while still avoiding the extra triggers of active sheet:
if (this.sheet.data === this.datas[e] && !t) return this;
The same bug also exists in setActiveSheetByName, line 21, column 1113985 in the minified Javascript.
@jrf.att
We will improve it according to your requirment.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSGRIDJS-2897
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@peter.zhou
We are pleased to inform you that your issue (Ticket ID: “CELLSGRIDJS-2897”) has been resolved.
This fix/enhancement will be included in the upcoming release (v26.11).