SMART datagrid v1.4 > Classes > GridExportOptions

[ grids ver.1.3.5]   Back  Forward

DataLudi.GridExportOptions.async  property

true로 지정되면 그리드 내용을 엑셀로 변환하는 일이 여러 단위로 나누어서 실행되고, 각 단위 마다 지정된 콜백 함수들이 호출된다. 

onStart, onProgress, onFinished 콜백들이 각 지점마다 발생하고, 콜백 함수 내에서 GridBase.showProgress를 호출해서 진행바를 표시하는 등, 백그라운드 UI 작업을 실행할 수도 있다. 또, showProgresstrue면 콜백 설정들이 없어도 자동적으로 progress bar가 표시된다. 

기본값은 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