SMART datagrid v1.4 > Examples

[ grids ver.1.4.5]   Back  Forward

Excel Multi Export  Example

여러개의 그리드를 Microsoft Excel(.xlsx) 문서로 내보내기 할수있다. 아래의 두개의 그리드를 하나의 엑셀파일로 다운받는 샘플이다. 


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

소스보기 JSP 

See Also
GridExportOptions.applyDynamicStyles
GridExportOptions.styledText
exportToExcel
Excel Exporting
Examples
Excel Exporting
Async Excel Exporting