From 9dbe2078d3a1e7b6d684b69fc0ee1c8689aa6dae Mon Sep 17 00:00:00 2001 From: Samuel Reichert Date: Thu, 30 Oct 2025 14:32:14 +0100 Subject: [PATCH 1/2] fix(datagrid-web): update selection properties to include 'keepSelection' in hide logic --- .../datagrid-web/src/Datagrid.editorConfig.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts b/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts index 5cc80ac52e..eb08cc2b42 100644 --- a/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts +++ b/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts @@ -122,7 +122,12 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid const { itemSelection, itemSelectionMethod } = values; if (itemSelection === "None") { - hidePropertiesIn(defaultProperties, values, ["itemSelectionMethod", "itemSelectionMode", "onSelectionChange"]); + hidePropertiesIn(defaultProperties, values, [ + "itemSelectionMethod", + "itemSelectionMode", + "onSelectionChange", + "keepSelection" + ]); } if (itemSelectionMethod === "checkbox") { @@ -135,7 +140,6 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid if (itemSelection !== "Multi") { hidePropertiesIn(defaultProperties, values, [ - "keepSelection", "selectionCounterPosition", "clearSelectionButtonLabel", "enableSelectAll" From 8a3bfced095c09f5101dccace3d7c38c19bcaad8 Mon Sep 17 00:00:00 2001 From: Samuel Reichert Date: Thu, 30 Oct 2025 14:32:47 +0100 Subject: [PATCH 2/2] chore(datagrid-web): add changelog entry --- packages/pluggableWidgets/datagrid-web/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/pluggableWidgets/datagrid-web/CHANGELOG.md b/packages/pluggableWidgets/datagrid-web/CHANGELOG.md index e766b412b9..7a730488b4 100644 --- a/packages/pluggableWidgets/datagrid-web/CHANGELOG.md +++ b/packages/pluggableWidgets/datagrid-web/CHANGELOG.md @@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - We added configurable selection count visibility and clear selection button label template for improved row selection management. +### Fixed + +- The property panel now shows keep selection property when datagrid is set to single selection. + - We fixed an issue where missing consistency checks for the captions were causing runtime errors instead of in Studio Pro - We added a '"Select all" across pages' setting that, when enabled, allows users to select all rows across all pages.