SMART datagrid v.1 > Classes > ValueColumn
Expression which calculates the value to be displayed in merged cell.
If do not set this expression or mergeValueCallback, it will display the value of first cell being included in merging. If mergeValueCallback is set by a valid function, this property will be ignored.
In the table below, it has listed the variables which can be used in the expression.
Defaults to null.
Variable | Explanation |
---|---|
value | The value of field. |
values | The value of other fields. ex) "values['quantity'] + values['price'] > 1000000" |
row | The number of grid row. |
datarow | The number of data row. |
checked | If grid row is checked state, it will be true. |
var col = grid.columnByName('salary');
col.setMergeValueExpression('value + values["dept"]');