Posted 9 November 2020, 3:38 pm EST
We are trying to bind a very large workbook( up to 100K records )to the spread control. Does spreadJS provides an event or callback function, so that we can use that to show the loader?
Forums Home / Spread / SpreadJS
Posted by: hghanta on 9 November 2020, 3:38 pm EST
Posted 9 November 2020, 3:38 pm EST
We are trying to bind a very large workbook( up to 100K records )to the spread control. Does spreadJS provides an event or callback function, so that we can use that to show the loader?
Posted 9 November 2020, 11:59 pm EST
Hi,
You may use setDataSorce method for the required functionality. Please refer to the following code snippet and attached sample that demonstrates the same.
this.spinner.show();
setTimeout(() => {
sheet.setDataSource(this.getData(100000));
this.spinner.hide();
}, 1000);
sample: https://stackblitz.com/edit/ngx-spinner-demo-supord?file=src/app/app.component.ts
API Reference:
setDataSource: https://www.grapecity.com/spreadjs/docs/v13/online/SpreadJS~GC.Spread.Sheets.Worksheet~setDataSource.html
Regards
Avinash