SMART datagrid v.1 > Classes > GridExportOptions

Back  Forward

DataLudi.GridExportOptions.target  property

The location which exports the created Excel document. Specify one of "remote", "local". In the case of remote, there should exist url which gets Base64 stream from the server and transfers to Excel document of which file name is specified by fileName

Defaults to "remote".

Getter
function target(): String
Setter
function setTarget(value: String)
Code -1
    $('#export').click(function () {
        DataLudi.exportToExcel(grdMain, {
            target:  "local",
            fileName: "dlgrid.xlsx"
        });
    });
Code -2
    $('#export').click(function () {
        DataLudi.exportToExcel(grdMain, {
            target: "remote",
            url:  "/envelope",
            fileName: "dlgrid.xlsx"
        });
    });
See Also
url
fileName
GridExcelExporter
exportToExcel
Examples
Excel Exporting