mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Alanren/fixfor1782 (#2247)
* fix for issue #1782, refresh the cached data * pick up the latest version of slickgrid and tools service
This commit is contained in:
@@ -457,9 +457,11 @@ export class EditDataComponent extends GridParentComponent implements OnInit, On
|
||||
}
|
||||
} finally {
|
||||
// The operation may fail if there were no changes sent to the service to revert,
|
||||
// so clear any existing client-side edit and refresh the table regardless
|
||||
// so clear any existing client-side edit and refresh on-screen data
|
||||
// do not refresh the whole dataset as it will move the focus away to the first row.
|
||||
//
|
||||
this.currentEditCellValue = null;
|
||||
this.refreshResultsets();
|
||||
this.dataSet.dataRows.resetWindowsAroundIndex(this.currentCell.row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ export interface IObservableCollection<T> {
|
||||
at(index: number): T;
|
||||
getRange(start: number, end: number): T[];
|
||||
setCollectionChangedCallback(callback: (change: CollectionChange, startIndex: number, count: number) => void): void;
|
||||
resetWindowsAroundIndex(index: number): void;
|
||||
}
|
||||
export class CancellationToken {
|
||||
private _isCanceled;
|
||||
@@ -291,7 +292,7 @@ export class VirtualizedCollection<TData> implements IObservableCollection<TData
|
||||
getRange(start: number, end: number): TData[];
|
||||
private getRangeFromCurrent(start, end);
|
||||
private getDataFromCurrent(index);
|
||||
private resetWindowsAroundIndex(index);
|
||||
resetWindowsAroundIndex(index);
|
||||
}
|
||||
}
|
||||
declare module 'angular2-slickgrid/out/js/virtualizedCollection' {
|
||||
|
||||
Reference in New Issue
Block a user