title: newRawData.forEach is not a function in ui-grid
body: <p>I search for this error but not able to fix it.Am new to angular.Dont know exactly whats going wrong.</p>
  
  <p>Html:</p>
  
  <pre><code>&lt;div class="row gridContainer" ng-controller="tripsGridController"&gt;
          &lt;div ui-i18n="{{::selectedLanguageName}}"&gt;
              &lt;div ui-grid="gridOptionsTrips" ui-grid-selection ui-grid-resize-columns ui-grid-move-columns &gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Angular code:</p>
  
  <pre><code>$scope.gridOptionsTrips = {};
          $scope.gridDataSourceTrips = [];
          var ROW_HEIGHT = 30;
        //  to show data on Grid
          $scope.gridOptionsTrips = {
              enableRowSelection: true,
              enableRowHeaderSelection: true,
              enableSorting: true,
              multiSelect: false,
              rowHeight: ROW_HEIGHT,
              virtualizationThreshold: 10,
              fastWatch: false,
              enableHorizontalScrollbar: uiGridConstants.scrollbars.NEVER,
              data: 'gridDataSourceTrips',
              appScopeProvider: $scope,
              showColumnMenu: true,
              enableSelectAll: false,
              noUnselect: true,
              enableCellSelection: true,
              rowTemplate: '&lt;div ng-click=\"grid.appScope.onTripsGridRowClick(row)\" ng-repeat=\"(colRenderIndex, col) in colContainer.renderedColumns track by col.uid\" class=\"ui-grid-cell\" ng-class=\"{ \'ui-grid-row-header-cell\': col.isRowHeader }\" ui-grid-cell&gt;&lt;/div&gt;'
          };
  
   $scope.onTripsGridRowClick = function (row) {
              $scope.gridApi.selection.selectRow(row.entity);
          };
  
          $scope.gridColDefsTrips = function () {
              var idTemplate = '&lt;div&gt;&lt;/div&gt;';
              var sTemplate = '&lt;div&gt;&lt;/div&gt;';
              var speedTemplate = '&lt;div&gt;&lt;/div&gt;';
              var directionTemplate = '&lt;div&gt;&lt;/div&gt;';
              var timeTemplate = '&lt;div&gt;&lt;/div&gt;';
              var kmCounterTemplate = '&lt;div&gt;&lt;/div&gt;';
              var driverNameTemplate = '&lt;div&gt;&lt;/div&gt;';
              return [
                    { name: "CARDRIVER", displayName: "CARDRIVER", field: 'UserId', cellTemplate: idTemplate, enableColumnMenu: false, headerCellFilter: 'translate', width: 150, showInColumnFilter: true },
                    { name: 'STARTEND', displayName: 'STARTEND', field: 'Departure.DateTime', cellTemplate: idTemplate, width: 70, enableColumnMenu: false, headerCellFilter: 'translate', showInColumnFilter: true },
                    { name: 'STARTEND', displayName: 'STARTEND', field: 'Destination.DateTime',cellTemplate: idTemplate, enableColumnMenu: false, headerCellFilter: 'translate', width: 80, showInColumnFilter: true },
                    { name: 'TRIPLENGTH', displayName: 'TRIPLENGTH', field: 'Distance', cellTemplate: idTemplate, enableColumnMenu: false, headerCellFilter: 'translate', width: 150, showInColumnFilter: true }
              ];
          };
          $scope.gridDataSourceTrips = tripsDetailsService.GetAllTripsByWeek('2014-01-10', '2014-01-14', 1, 20);
          $scope.gridOptionsTrips.columnDefs = $scope.gridColDefsTrips();
  </code></pre>