SMART datagrid v.1 > Classes > CalculatedColumn

Back  Forward

DataLudi.CalculatedColumn.nanText  property

The string which will be displayed instead when valueType is NUMBER and the calculated value is NaN

Defaults to null.

Getter
function nanText(): String
Setter
function setNanText(value: String)
Code -1
    grid.setColumns([{
        name: "colAmount",
        type: "calced",
        valueExpression: "unit_price * quantity",
        nanText: "-"
    },
        ...
    ]);
See Also
nanValue
valueType
valueExpression
valueCallback
Examples
Total Calculated Column
Calculated Column