@@ -219,6 +219,8 @@ export class TableView {
219
219
if ( rowCount === this . _pageDataSize ) {
220
220
// send initial set of data rows to table view for display
221
221
this . loadData ( tableRows ) ;
222
+ // stop reading data
223
+ // dataStream.destroy();
222
224
}
223
225
} ) ;
224
226
@@ -228,6 +230,13 @@ export class TableView {
228
230
// load first page of data
229
231
this . loadData ( tableRows ) ;
230
232
}
233
+ else if ( tableRows . length >= this . _pageDataSize ) {
234
+ // load remaining table rows
235
+ this . _tableData = tableRows ;
236
+ this . _totalRows = this . _tableData . length ;
237
+ const dataPageIndex : number = 1 ;
238
+ this . addData ( dataPageIndex ) ;
239
+ }
231
240
} ) ;
232
241
}
233
242
@@ -240,6 +249,7 @@ export class TableView {
240
249
// save table data for incremental load into table view
241
250
this . _tableData = tableRows ;
242
251
this . _totalRows = this . _tableData . length ;
252
+ this . logTableData ( tableRows ) ;
243
253
244
254
// send initial set of data rows to table view for display
245
255
const initialDataRows : Array < any > = tableRows . slice ( 0 , Math . min ( this . _pageDataSize , this . _totalRows ) ) ;
@@ -260,6 +270,7 @@ export class TableView {
260
270
*/
261
271
public async addData ( dataPage : number ) : Promise < void > {
262
272
const nextRows : number = dataPage * this . _pageDataSize ;
273
+ console . log ( `tabular.data.view:addData(): loading rows ${ nextRows } + ...` ) ;
263
274
if ( nextRows < this . _totalRows ) {
264
275
// get the next set of data rows to load in table view
265
276
const dataRows : Array < any > =
0 commit comments