Skip to content

Commit

Permalink
Merge branch 'r7lemieux-listenToSortInfo' into 2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jonricaurte committed Jul 2, 2013
2 parents a56d52a + 5fb159f commit c3f2b48
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/classes/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,16 @@ var ngGrid = function ($scope, options, sortService, domUtilityService, $filter,
// var p = $q.defer();
// p.resolve();
// return p.promise;
$scope.$watch(function() {
return self.config.sortInfo;
}, function(sortInfo){
if (!sortService.isSorting) {
self.getColsFromFields();
self.sortActual();
self.searchProvider.evalFilter();
}
//$scope.$emit('ngGridEventSorted', grid.config.sortInfo);
},true);
};

self.resizeOnData = function(col) {
Expand Down

0 comments on commit c3f2b48

Please sign in to comment.