Instead of the action column and the eye/pen icons you get with kartik gridview to view or edit a record, i would like to use either a row click or a link on any of the fields to go to the edit page.
Can anyone suggest how to go about this ?
thx
Instead of the action column and the eye/pen icons you get with kartik gridview to view or edit a record, i would like to use either a row click or a link on any of the fields to go to the edit page.
Can anyone suggest how to go about this ?
thx
Here it is a sample code of mine:
[
'attribute' => 'DOCNR',
'format' => 'raw',
'value' => function ($model, $key, $index, $widget) {
$title = $model->DOCNR;
return Html::a($title, ['update', 'id' => $model->ID], ['data-pjax' => 1]);
},
'label' => Yii::t('app', 'Document'),
'hAlign'=>'center',
'vAlign'=>'middle',
'width'=>'100px',
'pageSummary'=>'Total',
],