SMART datagrid v.1 > Classes > CalculatedColumn

Back  Forward

DataLudi.CalculatedColumn.calcBounds  property

Specify the bound of cells which will be calculated together when calculating cell value of cached calculated column by ColumnCalcBounds constant. 

The calculation area is set by calcRange property. 

Defaults to ColumnCalcBounds.GRID.

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