update resultSet in data provider (#12478) (#12486)

This commit is contained in:
Lucy Zhang
2020-09-18 18:36:40 -07:00
committed by GitHub
parent 8782eeb32f
commit 56669db6b6

View File

@@ -295,6 +295,11 @@ class DataResourceTable extends GridTableBase<any> {
public convertData(set: ResultSetSummary): Promise<void> { public convertData(set: ResultSetSummary): Promise<void> {
return this._gridDataProvider.convertAllData(set); return this._gridDataProvider.convertAllData(set);
} }
public updateResult(resultSet: ResultSetSummary): void {
super.updateResult(resultSet);
this._gridDataProvider.updateResultSet(resultSet);
}
} }
export class DataResourceDataProvider implements IGridDataProvider { export class DataResourceDataProvider implements IGridDataProvider {
@@ -372,6 +377,10 @@ export class DataResourceDataProvider implements IGridDataProvider {
}); });
} }
public updateResultSet(resultSet: ResultSetSummary): void {
this._resultSet = resultSet;
}
public async convertAllData(result: ResultSetSummary): Promise<void> { public async convertAllData(result: ResultSetSummary): Promise<void> {
// Querying 100 rows at a time. Querying large amount of rows will be slow and // Querying 100 rows at a time. Querying large amount of rows will be slow and
// affect table rendering since each time the user scrolls, getRowData is called. // affect table rendering since each time the user scrolls, getRowData is called.