JavaScript/jQuery PivotGrid Summary Cell
An object exposing methods that manipulate a summary cell and provide access to its neighboring cells.
child(direction, fieldValue)
Use this method for Total and Grand Total cells to get one of the cells, whose value is involved in the calculation of the total value. The image below demonstrates what cell will be returned by the following code.
var targetCell = sourceCell.child("row", 8); //August is the 8th month
This method is opposite to the parent(direction) method.
children(direction)
This method is a general case of the child(direction, fieldValue) method. It returns all the cells whose values were involved in a calculation of the total value. Use it for Total and Grand Total cells.
field(area)
If the header items are expanded and the cell belongs to multiple fields, the field of the deepest expanded header item is returned. The image below demonstrates what field will be returned by the following code.
var columnField = sourceCell.field("column");
next(direction)
This method is opposite of the prev(direction) method.
next(direction, allowCrossGroup)
This method is opposite of the prev(direction, allowCrossGroup) method.
parent(direction)
This method is opposite of the child(direction, fieldValue) method.
prev(direction)
This method is opposite of the next(direction) method.
prev(direction, allowCrossGroup)
This method is opposite to the next(direction, allowCrossGroup) method.
value(field, isCalculatedValue)
Specifies whether or not to return a post-processed value. Pass false here to get the initial summary value.
value(isCalculatedValue)
Specifies whether or not to return a post-processed value. Pass false here to get the initial summary value.