Hi,
I need to refresh a grid in background. Currently, i'm using this code:
This works fine unless i'm using pagination, because grid considers that data variable contains all rows.
How can i properly create a result set with pagination options?
I tried:
But it doesn't work correct. In this case, grid shows 1000 rows, but it only contains 75.
Thanks!
I need to refresh a grid in background. Currently, i'm using this code:
Code:
grid.dataSource.fetchData(null, function(dsResponse, data, dsRequest) {
resultSet = isc.ResultSet.create({
dataSource: dsRequest.dataSource,
allRows: data
});
grid.setData(resultSet);
grid.dataArrived();
}, {
showPrompt: false
});
How can i properly create a result set with pagination options?
I tried:
Code:
resultSet = isc.ResultSet.create({
dataSource: dsRequest.dataSource,
fetchMode: 'paged',
fetchStartRow: dsResponse.startRow,
fetchEndRow: dsResponse.endRow,
localData: data,
totalRows: dsResponse.totalRows
});
Thanks!
Comment