SMART datagrid v.1 > Types

[ grids ver.1.3.0]   Back  Forward

DataLudi.ColumnCalcRange

Cell area being calculated together when calculate cell value of Calculated Column of cached

It is used as CalculatedColumn.calcRange property. The range of limiting calculation area is specified through CalculatedColumn.calcBounds property. 

Values
ROWS"rows"Recalculate changed rows only.
FIRST"first"Calculate all grid rows in order. You can refer the value of previous row in formula.
LAST"last"Calculate all grid rows in reverse order. You can refer the value of next row in formula.
LOWER"lower"Calculate all changed rows of grid in order. You can refer the value of previous row in formula.
UPPER"upper"Calculate all changed rows of grid in reverse order. You can refer the value of next row in formula.

Code -1
    grid.setColumns([{
        name: "colQuantity",
        type: "calced",
        cached: true,
        calcBounds: DataLudi.ColumnCalcBounds.GRID,
        calcRange: DataLudi.ColumnCalcRange.FIRST,
        valueExpression: "quantity + prevval",
        ...
    },
    ...
    ];
See Also
ColumnCalcRange
CalculatedColumn.calcRange
CalculatedColumn.calcBounds
Examples
Total Calculated Columns
Calculated Columns