ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Get Aggregation value in Tree Grid.

Open debayan31 opened this issue 11 years ago • 4 comments

Using below logic I can iterate my present visible grid.

$scope.gridApi.grid.renderContainers.body.visibleRowCache.forEach(function (row) {
  console.log($scope.gridApi.grid.renderContainers.body.visibleRowCache);
  // my logic
});

But from the above logic I can find no for "groupPriority = 0". How can I able to iterate higher grouping level to lower grouping level .

For better understand see attached screenshot.

mapping screenshot

debayan31 avatar Apr 08 '15 07:04 debayan31

The row has a groupLevel on it, that should tell you which grouping you're currently looking at.

PaulL1 avatar Apr 08 '15 19:04 PaulL1

Hi Paul.

Kindly refer above attached screenshot for proper understanding. Current size of $scope.gridApi.grid.renderContainers.body.visibleRowCache is 1 and groupLevel is 0 which is holding data for State INDIA.

Logically in groupLevel is 1 it will hold data corresponding to female(2) and male(4). So how can I iterate $scope.gridApi.grid.renderContainers.body.visibleRowCache for getting data when groupLevel = 1?

debayan31 avatar Apr 20 '15 10:04 debayan31

What have you already tried - example code perhaps or a plunker?

PaulL1 avatar Apr 20 '15 20:04 PaulL1

Request for further information, no further comment for over 3 weeks. Closing.

PaulL1 avatar May 16 '15 06:05 PaulL1