Discussions concerning ui-grid 4.0 development. See the tutorials: http://ui-grid.info/docs/#/tutorial
0%
mportuga on list
mportuga on v4.9.2
Scrum on v4.9.1
mportuga on master
Revert "chore: update changelog… (compare)
0%
i need hierarchy from column level.
no need row level.is there any future in column level hierachy
Hello, I'm looking for a way to get the row which has just been selected in the gridApi.selection.on.rowSelectionChangedBatch handler function.
For example, in this Plunker http://plnkr.co/edit/14Px9QKfnoydU2sZ , let's say I do the following:
At the step 2, I'd like to get the row object whose Name is "Hatfield Hudson".
At the step 3, I'd like to get the row object whose Name is "Sandoval Mclean".
In other words, here is what I want to do:
gridApi.selection.on.rowSelectionChangedBatch($scope,function(rows){
// **** Question ****
// Is there any way to reliably get the row which has just been selected here?
// i.e. How can I find out which is the one which has just been selected out of the following ("head" and "tail") ?
var head = rows[0];
var tail = rows[rows.length-1];
$log.log(head.entity.name);
$log.log(tail.entity.name);
});
$scope.selectButtonClick()
calls but I have no idea how it can be done.. Any ideas? Any help would be appreciated https://github.com/angular-ui/ui-grid/blob/9854f69ac6e4f0fcbf875531be3c638f7b21765a/packages/selection/src/js/selection.js#L797