Skip to content

Commit

Permalink
fix(grid): invalidate grid after setItems to re-render grid (#650)
Browse files Browse the repository at this point in the history
- fixes a problem only reported in Angular-Slickgrid, not in Aurelia-Slickgrid but might as well apply the same code
  • Loading branch information
ghiscoding committed Sep 7, 2021
1 parent 22e2db0 commit de5a906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aurelia-slickgrid/custom-elements/aurelia-slickgrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ export class AureliaSlickgridCustomElement {
});
const onSetItemsCalledHandler = dataView.onSetItemsCalled;
(this._eventHandler as SlickEventHandler<GetSlickEventType<typeof onSetItemsCalledHandler>>).subscribe(onSetItemsCalledHandler, (_e, args) => {
grid.invalidate();
this.handleOnItemCountChanged(dataView.getLength(), args.itemCount);

// when user has resize by content enabled, we'll force a full width calculation since we change our entire dataset
Expand Down

0 comments on commit de5a906

Please sign in to comment.