SMART datagrid v.1 > Classes > GridExportOptions

Back  Forward

DataLudi.GridExportOptions.styledText  property

If it is true, when exporting to Excel, it will be saved as the text in which has reflected GridStyles.prefix, suffix, ValueColumn.displayCallback

And, it will be converted to the formats of Style Set which has been specified in the corresponding data cell instead of the format like numberFormat, datetimeFormat which have been set in this option. 

Defaults to false.

Getter
function styledText(): Boolean
Setter
function setStyledText(value: Boolean)
Code -1
    DataLudi.exportToExcel(grdMain, {
        target: "local",
        fileName: "dlgrid.xlsx",
        styledText: document.getElementById("chkStyledText").checked,
        ...
    });
See Also
applyDynamicStyles
DataColumn.dynamicStyles
GridBody.cellDynamicStyles
GridBody.rowDynamicStyles
exportToExcel
Examples
Dynamic Styles Exporting
Excel Exporting