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. 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"