SMART datagrid v.1 > Classes > GridExportOptions

Back  Forward

DataLudi.GridExportOptions.applyDynamicStyles  property

If specify this property as true, when exporting to Excel, Dynamic Style applied to each cell will be reflected. 

Dynamic styles like DataColumn.dynamicStyles, GridBody.cellDynamicStyles, rowDynamicStyles and DataCellStyle will all be applied. 

Defaults to false.

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