FlexGridXlsxConverter Async method blocking UI

Posted by: shivangi.sinha on 12 March 2018, 10:45 pm EST

  • Posted 12 March 2018, 10:45 pm EST

    Whenever the count of records >= 100 000, the UI gets blocked. Is it possible to run this method using a web worker to avoid it?

    
    wjcGridXlsx.FlexGridXlsxConverter.saveAsync(
                    this.flex,
                    { includeColumnHeaders : true },
                    `${fileName}.xlsx`,
                    () => { this.alertService.createAlert( true, false, 'Exported successfully.' ); },
                    () => { this.alertService.createAlert( false, true, 'Error occurred while exporting. ');}
                );
    
    
  • Posted 13 March 2018, 3:44 pm EST

    Hi Shivangi,

    The behavior is by design to prevent any changes for FlexGrid/FlexSheet during export, UI gets freezed.

    Since WebWorker do not allow to access DOM and Window object, WebWorker method is unable to fix this issue.

    Please refer to the following forum thread discussing the same issue:

    https://www.grapecity.com/en/forums/wijmo/wijmo-flex-grid--flexgridp#hi-matthew-thank-you-for-y

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels