SMART datagrid v1.4 > Functions

[ grids ver.1.4.5]   Back  Forward

DataLudi.multiExportToExcel  Function

여러개의 그리드를 Excel file로 export한다. 

new DataLudi.GridExcelExporter().multiExport({
            target: "local",
            fileName: "multi-export.xlsx",
            targetGrids:[
                {sheetName: '시트1', targetGird:grdMain1},
                {sheetName: '시트2', targetGird:grdMain2}
            ] 
        });

와 동일하다. 자세한 설명은 GridExcelExporter를 참조한다. 

function multiExportToExcel (options: GridExportOptions|Object);
Returns
Void
Parameters
options - GridExportOptions|Object. required.
Code -1
    $('#btnSave').click(function () {
        new DataLudi.multiExportToExcel({
            target: "local",
            fileName: "multi-export.xlsx",
            targetGrids:[
                {sheetName: '시트1', targetGird:grdMain1},
                {sheetName: '시트2', targetGird:grdMain2}
            ] 
        });
    });
See Also
GridExcelExporter
multiExport
GridExportOptions
Examples
ExcelExporting
ExcelMultiExport