From ce1aca13bd3af28f9a0a37aff197e4d98f8f057a Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 27 Jul 2024 01:46:04 -0400 Subject: [PATCH] chore: add comments about Row Selection with Row Detail View --- .../demo/src/examples/slickgrid/example19.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/demo/src/examples/slickgrid/example19.ts b/packages/demo/src/examples/slickgrid/example19.ts index 0ba2caafa..97b84a942 100644 --- a/packages/demo/src/examples/slickgrid/example19.ts +++ b/packages/demo/src/examples/slickgrid/example19.ts @@ -90,9 +90,6 @@ export class Example19 { }, enableFiltering: true, enableRowDetailView: true, - rowSelectionOptions: { - selectActiveRow: true - }, darkMode: this._darkMode, datasetIdPropertyName: 'rowId', // optionally use a different "id" rowDetailView: { @@ -141,7 +138,18 @@ export class Example19 { console.log('before toggling row detail', args.item); return true; }, - } + }, + rowSelectionOptions: { + selectActiveRow: true + }, + + // You could also enable Row Selection as well, but just make sure to disable `useRowClick: false` + // enableCheckboxSelector: true, + // enableRowSelection: true, + // checkboxSelector: { + // hideInFilterHeaderRow: false, + // hideSelectAllCheckbox: true, + // }, }; }