SMART datagrid v.1 > Classes > CalculatedColumn
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.
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"
},
...
]);