2016-03-03 89 views

回答

0

試試這個

if(data.length > 10) { 
    $scope.gridOptions.enableVerticalScrollbar = 1; 
} else { 
    $scope.gridOptions.enableVerticalScrollbar = 0; 
} 
$scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.ALL);