SMART datagrid v.1 > Classes > GridExportOptions

Back  Forward

DataLudi.GridExportOptions.booleanCallback  property

Callback function which returns the value of data cell of BOOLEAN field as the value of Excel cell. 

function (row:GridRow, column:GridColumn, value:*): Boolean|String;

If this property is not null, booleanFormat setting will be ignored. 

Defaults to null.

Getter
function booleanCallback(): Function
Setter
function setBooleanCallback(value: Function)
Code -1
    $('#export').click(function () {
        new DataLudi.GridExcelExporter().export(grdMain, {
            target: "remote",
            url:  "/envelope",
            fileName: "dlgrid.xlsx",
            booleanCallback: function (row, column, v) {
                return v ? "OK" : "No";
            }
        });
    });
See Also
booleanFormat
datetimeCallback
datetimeFormat
numberCallback
numberFormat
GridExcelExporter
exportToExcel
Examples
Excel Exporting