Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/app/examples/grid-composite-editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ <h2>
(onCompositeEditorChange)="handleOnCompositeEditorChange($event.detail.eventData, $event.detail.args)"
(onItemDeleted)="handleItemDeleted($event.detail)"
(onGridStateChanged)="handleOnGridStateChanged($event.detail)"
(onPaginationChanged)="handleReRenderUnsavedStyling()"
(onFilterChanged)="handleReRenderUnsavedStyling()"
(onRowsOrCountChanged)="handleReRenderUnsavedStyling()"
(onValidationError)="handleValidationError($event.detail.eventData, $event.detail.args)"
>
</angular-slickgrid>
Expand Down
6 changes: 3 additions & 3 deletions src/app/examples/grid-composite-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ export class GridCompositeEditorComponent implements OnDestroy, OnInit {
removeUnsavedStylingFromCell(_item: any, column: Column, row: number) {
// remove unsaved css class from that cell
const cssStyleKey = `unsaved_highlight_${[column.id]}${row}`;
this.angularGrid.slickGrid.removeCellCssStyles(cssStyleKey);
this.angularGrid.slickGrid?.removeCellCssStyles(cssStyleKey);
const foundIdx = this.cellCssStyleQueue.findIndex((styleKey) => styleKey === cssStyleKey);
if (foundIdx >= 0) {
this.cellCssStyleQueue.splice(foundIdx, 1);
Expand All @@ -791,7 +791,7 @@ export class GridCompositeEditorComponent implements OnDestroy, OnInit {

removeAllUnsavedStylingFromCell() {
for (const cssStyleKey of this.cellCssStyleQueue) {
this.angularGrid.slickGrid.removeCellCssStyles(cssStyleKey);
this.angularGrid.slickGrid?.removeCellCssStyles(cssStyleKey);
}
this.cellCssStyleQueue = [];
}
Expand All @@ -815,7 +815,7 @@ export class GridCompositeEditorComponent implements OnDestroy, OnInit {
if (row !== undefined && row >= 0) {
const hash = { [row]: { [column.id]: 'unsaved-editable-field' } };
const cssStyleKey = `unsaved_highlight_${[column.id]}${row}`;
this.angularGrid.slickGrid.setCellCssStyles(cssStyleKey, hash);
this.angularGrid.slickGrid?.setCellCssStyles(cssStyleKey, hash);
this.cellCssStyleQueue.push(cssStyleKey);
}
}
Expand Down
Loading