SMART datagrid v.1 > Classes > CalculatedColumn

Back  Forward

DataLudi.CalculatedColumn.nanValue  property

The number value which will be replaced when valueType is NUMBER and the calculated value is NaN

Defaults to undefined.

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