SMART datagrid v1.4 > Functions

Back  Forward

DataLudi.exportToExcel  Function

Excel file로 export한다. 

new DataLudi.GridExcelExporter.export(grid, options)

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

function exportToExcel (grid: GridBase, options: GridExportOptions|Object);
Returns
Void
Parameters
grid - GridBase. required.
options - GridExportOptions|Object. required.
Code -1
    $('#btnSave').click(function () {
        DataLudi.exportToExcle(grid, {
            target: 'local',
            fileName: 'dlgrid.xlsx'
        });
    });
Code -2
    $('#btnSave').click(function () {
        DataLudi.exportToExcle(grid, {
            url: '/envelope',
            fileName: 'dlgrid.xlsx'
        });
    });
See Also
GridExcelExporter
export
GridExportOptions
Examples
ExcelExporting