SMART datagrid v.1 > Classes > GridExportOptions
Callback function which returns the value of data cell of NUMBER field as the value of Excel cell.
If set this property as callback function, numberFormat setting will be ignored.
Defaults to null.
$('#export').click(function () {
new DataLudi.GridExcelExporter().export(grdMain, {
url: "/envelope",
fileName: "dlgrid.xlsx",
numberCallback: function (row, column, v) {
return Math.max(0, Math.min(10000, v));
}
});
});