SMART datagrid v.1 > Classes > GridExportOptions

[ grids ver.1.3.5]   Back  Forward

DataLudi.GridExportOptions.async  property

If specify as true, the operation of converting grid contents to Excel will be run by being divided into several units, and callback functions specified in each unit will be called. 

You can also run background UI operation like firing onStart, onProgress, onFinished callbacks in each location and displaying progress bar by calling GridBase.showProgress within callback function. And, if showProgress is true, progress bar will be displayed automatically even if no callback settings. 

Defaults to false.

Getter
function async(): Boolean
Setter
function setAsync(value: Boolean)
Code -1
    $('#export').click(function () {
        new DataLudi.exportToExcel(grdMain, {
            target: "local",
            fileName: "dlgrid.xlsx",
            async: true,
            showProgress: true
        });
    });
See Also
onStart
onProgress
onFinished
showProgress
GridExcelExporter
exportToExcel
Examples
Async Excel Exporting