SMART datagrid v1.4 > Classes > DataField

Back  Forward

DataLudi.DataField.emptyValue  property

GridDataSet.getRowObject, TreeDataSet.getRowObject 등으로 데이터를 가져올 때, undefined 값 대신 리턴되는 값. 

기본값은 undefined.

Getter
function emptyValue(): *
Setter
function setEmptyValue(value: *)
Code -1
    ds.setFields([{
        fieldName: 'qty',
        dataType: 'number',
        emptyValue: '0'
    },
    ...
    ]);
See Also
GridDataSet.getRowObject
GridDataSet.getRowObjects
GridDataSet.getRowProps
GridDataSet.getRowsProps
TreeDataSet.getRowObject
TreeDataSet.getRowObjects
TreeDataSet.getRowProps
TreeDataSet.getRowsProps
DataField.nanValue
DataSet.nanValue
Examples
Empty Value