SMART datagrid v.1 > Classes > GridExportOptions

[ grids ver.1.3.5]   Back  Forward

DataLudi.GridExportOptions.textFormat  property

Conversion format which is used before saving as Excel value when the data type of data field is TEXT or the export value of object field is string. 

Please refer to GridStyles.textFormat about the conversion format. And, if specify textCallback, it will ignore this property. 

Defaults to null.

Getter
function textFormat(): String
Setter
function setTextFormat(value: String)
Note
Code -1
    $('#export').click(function () {
        new DataLudi.GridExcelExporter().export(grdMain, {
            url:  "/envelope",
            fileName: "dlgrid.xlsx",
            textFormat: '(\\w{3})(\\w*);$1-$2'
        });
    });
See Also
textCallback
numberCallback
datetimeCallback
booleanCallback
Examples
Excel Exporting