Skip to content

Commit

Permalink
fix(demo): Unsaved Cell CSS Styling follow sort/filter/pagination (#1313
Browse files Browse the repository at this point in the history
)

- so it turns out that instead of subscribing to multiple events like (`onPaginationChanged`, `onSort`, `onFilterChanged`, ....), they all can be replaced with 1 event `onRowsOrCountChanged` from DataView which is triggered for all of these cases
  • Loading branch information
ghiscoding committed Jan 6, 2024
1 parent 3bdd300 commit 7619579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/vite-demo-vanilla-bundle/src/examples/example12.ts
Expand Up @@ -136,8 +136,7 @@ export default class Example12 {
this._bindingEventService.bind(this.gridContainerElm, 'ongridstatechanged', this.handleOnGridStateChanged.bind(this));
this._bindingEventService.bind(this.gridContainerElm, 'ondblclick', () => this.openCompositeModal('edit', 50));
this._bindingEventService.bind(this.gridContainerElm, 'oncompositeeditorchange', this.handleOnCompositeEditorChange.bind(this));
this._bindingEventService.bind(this.gridContainerElm, 'onpaginationchanged', this.handleReRenderUnsavedStyling.bind(this));
this._bindingEventService.bind(this.gridContainerElm, 'onfilterchanged', this.handleReRenderUnsavedStyling.bind(this));
this._bindingEventService.bind(this.gridContainerElm, 'onrowsorcountchanged', this.handleReRenderUnsavedStyling.bind(this));
this._bindingEventService.bind(this.gridContainerElm, 'onselectedrowidschanged', this.handleOnSelectedRowIdsChanged.bind(this));
}

Expand Down

0 comments on commit 7619579

Please sign in to comment.