SMART datagrid v.1 > Classes > ValueColumn
Expression which determines whether to merge the cells being included in this column.
If the value returned by this expression is the same as the prior row, it will be merged with the cell of prior row. If set mergeCallback, 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.setMergeExpression('value + values["dept"]');