SMART datagrid v.1 > Classes > GridExportOptions
Callback function which returns the value of data cell of DATETIME field as the value of Excel cell.
If this property is not null, datetimeFormat setting will be ignored.
Defaults to null.
$('#export').click(function () {
DataLudi.exportToExcel(grdMain, {
taregt: "local",
fileName: "dlgrid.xlsx",
datetimeCallback: function (row, column, v) {
if (v) {
return v.toLocaleDateString();
} else {
return "";
}
}
});
});