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);