diff --git a/packages/pluggableWidgets/datagrid-web/CHANGELOG.md b/packages/pluggableWidgets/datagrid-web/CHANGELOG.md index fbe7db8aa7..816ed5929f 100644 --- a/packages/pluggableWidgets/datagrid-web/CHANGELOG.md +++ b/packages/pluggableWidgets/datagrid-web/CHANGELOG.md @@ -10,6 +10,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 ## [3.6.1] - 2025-10-14 diff --git a/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts b/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts index abd7f1cfb2..9e7639298b 100644 --- a/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts +++ b/packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts @@ -158,7 +158,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") { @@ -170,11 +175,7 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid } if (itemSelection !== "Multi") { - hidePropertiesIn(defaultProperties, values, [ - "keepSelection", - "selectionCountPosition", - "clearSelectionButtonLabel" - ]); + hidePropertiesIn(defaultProperties, values, ["selectionCountPosition", "clearSelectionButtonLabel"]); } }