I am using ag grid (angular2) for rendering table and uses valueGetter feature to render row data to ui.
I would like to add onscroll pagination to my ui, but couldn't find a way to use datasource.
`gridOptions.api.setDatasource(ds);`
How to collaborate valueGetter and pagination here?
valueGetter code
this.gridData = {cols:["col1", "col2"], rows:[["data1","data2"],
["data3","data4"]]};
this.columnDefs = [];
this.rowData = this.gridData.rows;
for (var i in this.gridData.cols){
var scopeOutCurrIndex = i => (params) => params.data[i]
this.columnDefs.push({
headerName: this.gridData.cols[i],
valueGetter: scopeOutCurrIndex(i)
})
}