SMART datagrid v.1 > Classes > DataOutputOptions

Back  Forward

DataLudi.DataOutputOptions.crText  property

The string which will replace carriage return ('\r') character when exporting data set by GridDataSet.exportToCsv

If do not specify, carriage return will be added the same. You can set line feed ('\n') substitution string by lfText

Defaults to undefined.

Getter
function crText(): String
Setter
function setCrText(value: String)
Code -1
    var s = dsMain.exportToCsv({
        crText: '\\r',
        lfText: '\\n'
    });
    DataLudi.saveTextToFile(s, 'dataludidata.csv');
See Also
lfText
separator
quoted
datetimeFormat
booleanFormat
valueCallback
valueCallbacks
GridDataSet.exportToCsv
Examples
Grid Data Set Export