title: AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is 'serverSide'
body: <p>We have a enterprise license for ag-grid. I'm trying to bind the server side datasource to ag-grid, but it's not calling the server datasource method and giving this warning <code>&quot;AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is 'serverSide'&quot; </code> in console.</p>
  <p>I've given correct key, imported ag-grid-enterprise as well in the component module.</p>
  <p>Component template:</p>
  <pre><code>     &lt;ag-grid-angular [columnDefs]=&quot;columns&quot; [rowData]=&quot;rowData&quot; [pagination]=&quot;true&quot;
         [paginationPageSize]=&quot;itemsPerPage&quot; [suppressDragLeaveHidesColumns]=&quot;true&quot;
         [enableCellTextSelection]=&quot;true&quot; [defaultColDef]=&quot;defaultColDef&quot; [suppressExcelExport]=&quot;false&quot;
         [suppressContextMenu]=&quot;false&quot; [frameworkComponents]=&quot;frameworkComponents&quot; [popupParent]=&quot;popupParent&quot;
         class=&quot;ag-theme-balham&quot; style=&quot;width: 100%; height: 550px&quot; (gridSizeChanged)=&quot;onGridSizeChanged($event)&quot;
         (gridReady)=&quot;onGridReady($event)&quot; (firstDataRendered)=&quot;headerHeightSetter($event)&quot;
         (columnResized)=&quot;headerHeightSetter($event)&quot; [sideBar]=&quot;sideBar&quot; [rowModelType]=&quot;rowModelType&quot;
         [cacheBlockSize]=&quot;cacheBlockSize&quot; [serverSideStoreType]=&quot;serverSideStoreType&quot;&gt;
       &lt;/ag-grid-angular&gt;
  </code></pre>
  <p>Component.ts:</p>
  <pre><code>  private gridApi;
    private gridColumnApi;
    public rowData: [];
    itemsPerPage: number = 100;
    rowModelType: 'serverSide';
    serverSideStoreType: 'full';
    cacheBlockSize: 20;
  
  ...
  
    onGridReady(params) {
      this.gridApi = params.api;
      this.gridColumnApi = params.columnApi;
      var datasource = this.createServerSideDatasource();
      params.api.setServerSideDatasource(datasource);
      this.gridApi.resetRowHeights();
    }
  
  ...
  
   createServerSideDatasource() {
      return {
        getRows: function (params) {
          console.log('[Datasource] - rows requested by grid: ', params.request);
          //TODO: offset and limit should be sent based on the pagination.. 
          let inputPayload = {
            offset: this.offset,
            limit: this.itemsPerPage
          }
  
          this.apiService.execute(ApiEndPoint.Products, inputPayload).subscribe((res: any) =&gt; {
            console.log(res);
            params.success({
              rowData: res.body[0].data,
              rowCount: res.body[0].data.length // response.lastRow,
            });
          }, err =&gt; {
            console.log(err);
            params.fail();
          });
        }
      };
    }
  </code></pre>
  <p>I'm not sure what I'm missing here. ClientModel still works fine.</p>