@@ -90,9 +90,6 @@ export class GridRowDetailComponent implements OnDestroy, OnInit {
9090 } ,
9191 enableFiltering : true ,
9292 enableRowDetailView : true ,
93- rowSelectionOptions : {
94- selectActiveRow : true
95- } ,
9693 darkMode : this . _darkMode ,
9794 datasetIdPropertyName : 'rowId' , // optionally use a different "id"
9895 rowDetailView : {
@@ -112,7 +109,7 @@ export class GridRowDetailComponent implements OnDestroy, OnInit {
112109 // false by default, clicking anywhere on the row will open the detail view
113110 // when set to false, only the "+" icon would open the row detail
114111 // if you use editor or cell navigation you would want this flag set to false (default)
115- useRowClick : true ,
112+ useRowClick : false ,
116113
117114 // how many grid rows do we want to use for the row detail panel (this is only set once and will be used for all row detail)
118115 // also note that the detail view adds an extra 1 row for padding purposes
@@ -141,7 +138,19 @@ export class GridRowDetailComponent implements OnDestroy, OnInit {
141138 console . log ( 'before toggling row detail' , args . item ) ;
142139 return true ;
143140 } ,
144- }
141+ } ,
142+ rowSelectionOptions : {
143+ // True (Single Selection), False (Multiple Selections)
144+ selectActiveRow : true
145+ } ,
146+
147+ // You could also enable Row Selection as well, but just make sure to disable `useRowClick: false`
148+ enableCheckboxSelector : true ,
149+ enableRowSelection : true ,
150+ checkboxSelector : {
151+ hideInFilterHeaderRow : false ,
152+ hideSelectAllCheckbox : true ,
153+ } ,
145154 } ;
146155
147156 this . getData ( ) ;
0 commit comments