From c4e847cc7c09a8652a43cdfd217c0c38ce0d3a21 Mon Sep 17 00:00:00 2001 From: gnbm Date: Mon, 26 Aug 2024 11:54:08 +0100 Subject: [PATCH] Update ClickEvent.ts --- src/Providers/DataGrid/Wijmo/Features/ClickEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/DataGrid/Wijmo/Features/ClickEvent.ts b/src/Providers/DataGrid/Wijmo/Features/ClickEvent.ts index b0f02985..b656a817 100644 --- a/src/Providers/DataGrid/Wijmo/Features/ClickEvent.ts +++ b/src/Providers/DataGrid/Wijmo/Features/ClickEvent.ts @@ -23,7 +23,7 @@ namespace Providers.DataGrid.Wijmo.Feature { const rowNumber = ht.row; const binding = column.binding; const uniqueId = column.describedById || binding; // if describedById is undefined (in the case of autogenerated columns), then use the binding - const columnWidgetId = this._grid.getColumn(uniqueId).widgetId; + const columnWidgetId = this._grid.getColumn(uniqueId)?.widgetId || binding; // if no column exists (in the case of autogenerated columns using JSONSerialize), then use the binding const line = _.cloneDeep(this._grid.provider.rows[rowNumber].dataItem); this._grid.rowMetadata.clear(line);