I am using the multiple ng-grids in same page like below,
but i need to trigger ngGridEventScroll for gridOptionsTwo.
So handled the below condition, it will be working fine
$scope.$on('ngGridEventScroll', function(event) {
if(event.targetScope == $scope.gridOptionsTwo .$gridScope) {
//----------------
}
});
$scope.gridOptionsOne = {
//---------
}
$scope.gridOptionsTwo = {
//-----------
}
but i need to trigger ngGridEventScroll for gridOptionsTwo.
So handled the below condition, it will be working fine
$scope.$on('ngGridEventScroll', function(event) {
if(event.targetScope == $scope.gridOptionsTwo .$gridScope) {
//----------------
}
});