Export grid to Microsoft Excel(.xlsx) Document by setting the setup information related to exporting in GridExportOptions object and calling export method.
$('#export').click(function () {
new DataLudi.GridExcelExporter().export(grdMain, {
target: "remote",
url: "/envelope",
fileName: "dlgrid.xlsx"
});
});