Posted 1 July 2020, 1:44 am EST
Hi Team,
I have created an headless workbook and wanted to delete all the hidden rows and columns from sheet.
Here is my code
const numRows = sheet.getRowCount();
const numColumns = sheet.getColumnCount();
for (let i = 0; i < numColumns; i++) {
if (!sheet.getColumnVisible(i)) {
sheet.deleteColumns(10, 2);
i = -1;
}
}
for (let i = 0; i < numRows; i++) {
if (!sheet.getRowVisible(i)) {
sheet.deleteRows(i, 1);
i = -1;
}
}
This code used to work in v12 of spread js
But recently i have upgraded my grapecity spread js to v13 and from thereon these functions arent working.
Can you please help me out? Was there any issue in spreadjs v13 or am i missing something in the process?