I am returning a number of rows from the server, as well as the lastRowIndex (which is -1, more records exist than are being displayed). The column definition is built and the column headers appear in my grid, but the row data is never populated and the getRows function gets called infinitely.
EnterpriseDatasource.prototype.getRows = function (params) {
var requestParams = JSON.stringify(params.request);
Service.ServerSideRowRequestForServer(requestParams)
.then(function (response) {
var res = JSON.parse(response);
//res[0] = table data
//res[1] = lastRowIndex
//Send first row of returned data to generate column definitions
buildColumnDefs(res[0][0]);
//Set row and column data for ag grid
$scope.gridOptions.api.setColumnDefs(columnDefs);
params.successCallback(res[0], res[1]);
}, function (error) {
toaster.pop('error', 'Error: ', error.data, 3000);
});
};
These are my grid options