From b6cdd11060258a4ae89be553f3c3cb972f8874ff Mon Sep 17 00:00:00 2001 From: Ghislain Beaulac Date: Fri, 18 May 2018 11:55:05 -0400 Subject: [PATCH] fix(grid): Support Row Selection & Inline Editors in 1 view - SlickGrid reference https://github.com/6pac/SlickGrid/pull/243 --- package.json | 2 +- src/app/modules/angular-slickgrid/global-grid-options.ts | 1 + .../angular-slickgrid/models/gridOption.interface.ts | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dd5c1a373..e8695425f 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "jquery-ui-dist": "^1.12.1", "lodash": "^4.17.4", "moment-mini": "^2.19.4", - "slickgrid": "^2.3.18", + "slickgrid": "^2.3.19", "text-encoding-utf-8": "^1.0.2", "vinyl-paths": "^2.1.0" }, diff --git a/src/app/modules/angular-slickgrid/global-grid-options.ts b/src/app/modules/angular-slickgrid/global-grid-options.ts index 04362177b..fda098c92 100644 --- a/src/app/modules/angular-slickgrid/global-grid-options.ts +++ b/src/app/modules/angular-slickgrid/global-grid-options.ts @@ -81,6 +81,7 @@ export const GlobalGridOptions: GridOption = { numberedMultiColumnSort: true, tristateMultiColumnSort: false, sortColNumberInSeparateSpan: true, + suppressActiveCellChangeOnEdit: true, pagination: { pageSizes: [10, 15, 20, 25, 30, 40, 50, 75, 100], pageSize: 25, diff --git a/src/app/modules/angular-slickgrid/models/gridOption.interface.ts b/src/app/modules/angular-slickgrid/models/gridOption.interface.ts index 3dd852505..3d680bdbd 100644 --- a/src/app/modules/angular-slickgrid/models/gridOption.interface.ts +++ b/src/app/modules/angular-slickgrid/models/gridOption.interface.ts @@ -289,6 +289,12 @@ export interface GridOption { /** Defaults to true, which leads to render a separate span for the number and styles it with css class slick-sort-indicator-numbered */ sortColNumberInSeparateSpan?: boolean; + /** + * Defaults to true, which leads to suppress the cell from becoming active when cell as an editor and is clicked. + * This flag should be enabled especially when mixing these 2 features (Row Selections & Inline Editors) + */ + suppressActiveCellChangeOnEdit?: boolean; + /** What is the top panel height in pixels (only type the number) */ topPanelHeight?: number;