SMART datagrid v.1 > Classes > DataSet

[ grids ver.1.3.0]   Back  Forward

DataLudi.DataSet.nanValue  property

The number value which will be saved instead of NaN value in NUMBER field. 

When save the value in data set by setValue, if the value corresponding to this field is NaN, the value specified in this property will be saved instead. If do not specify both properties, NaN will be saved as undefined

If specify nanValue of data field, it will use this value first. 

Defaults to undefined.

Getter
function nanValue(): Number
Setter
function setNanValue(value: Number)
Code -1
    var dataSet = new DataLudi.GridDataSet();
    dataSet.setNanValue(0);
Note
See Also
DataField.nanValue
ValueType
Examples
Empty Value
Number Value