Using Kartik Gridview, I have the following ExpandRowColumn in my view (Kartik Gridview) where I have enabled the rows in the grid to be clicked and expanded (to show related detail record) with the enableRowClick option and would like to hide the entire expand/collapse icon row and use only the row click ability. I have tried setting the 'disabled' option but that just makes the ExpandRowColumn disabled altogether.
[
'class' => 'kartik\grid\ExpandRowColumn',
'width' => '50px',
'value' => function ($model, $key, $index, $column) {
return GridView::ROW_COLLAPSED;
},
'detail' => function ($model, $key, $index, $column) {
return Yii::$app->controller->renderPartial('_example', ['model' => $model]);
},
'headerOptions' => ['class' => 'kartik-sheet-style'],
'expandOneOnly' => true,
'enableRowClick' => true,
],