SMART datagrid v.1 > Classes > ValueColumn

Back  Forward

DataLudi.ValueColumn.mergeExpression  property

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.

Getter
function mergeExpression(): String
Setter
function setMergeExpression(value: String)
Table-1  ValueColumn.mergeExpression variables
VariableExplanation
valueThe value of field.
valuesThe value of other fields. ex) "values['quantity'] + values['price'] > 1000000"
rowThe number of grid row.
datarowThe number of data row.
checkedIf grid row is checked state, it will be true.
Code -1
    var col = grid.columnByName('salary');
    col.setMergeExpression('value + values["dept"]');
See Also
mergeCallback
mergeValueExpression
mergeValueCallback
Expression Overview
Examples
Cell Merging