SMART datagrid v.1 > Classes > CalculatedColumn

Back  Forward

DataLudi.CalculatedColumn.valueType  property

The data type of values which are returned by valueCallback or valueExpression

If specify a wrong data type, it will not be correctly displayed in grid cell. 

Defaults to ValueType.NUMBER.

Getter
function valueType(): ValueType
Setter
function setValueType(value: ValueType)
Code -1
    grid.setColumns([{
        name: "colName",
        type: "calced",
        valueType: DataLudi.ValueType.TEXT, // If do not specify as TEXT, the calculated value below will not be displayed.
        valueExpression: "first_name + ' ' + last_name"
    },
        ...
    ]);
See Also
valueCallback
valueExpression
Examples
Calculated Column
Total Calculated Column