SMART datagrid v.1 > Classes > GridExportOptions
Conversion callback function which is called before saving as Excel value when the data type of data field is TEXT or the export value of object field is string.
If specify this property as function, textFormat setting will be ignored.
Defaults to null.
$('#export').click(function () {
new DataLudi.GridExcelExporter().export(grdMain, {
url: "/envelope",
fileName: "dlgrid.xlsx",
textCallback: function (row, column, value) {
if (row % 2 == 1) return value + '_2';
return value;
}
});
});