Hello,
I am transforming an excel file into json (https://github.com/SheetJS/sheetjs) via a web work that I load into Handsontable.
This excel has tens of thousands of rows and around 50 columns.
The loading is done quite quickly (although I think we can do much better) however I put a validation set in the columns, examples:
window.hot = new Handsontable(container, {
data: json.slice(1) || [],
stretchH: ‘all’,
rowHeaders: true,
colHeaders: json[0],
filters: true,
dropdownMenu: true,
autoRowSize: false,
autoColumnSize: false,
multiColumnSorting: true,
columns: [{
// col1
validator: enumValidator
},
{
// col2
validator: customValidator
},
{
// col3
type: ‘numeric’,
},
{
// col4
type: ‘date’,
dateFormat: ‘YYYY-MM-DD’,
validator: beforeDateValidator
},
//
// etc …
//
]
});
The problem is that if I run the validations with hot.validateCells(); just after loading it either crashes or takes too long.
So I would like to execute hot.validateCells(); in a different way, either basically via a webworker, I tried several things but nothing works (I must be doing it wrong) or via another way that I don’t know…
Do you have any ideas or even a solution?
Thank you