Hello:
I have a GridView that shows rows of info from related tables.
I’ve managed to make every row has a link to his update form page with this code:
'columns' => [
[
'label' => 'Spraying',
//'attribute' => 'numero_spraying',
'format' => 'raw',
'value' => function ($model, $key, $index) {
return Html::a($model->numero_spraying, ['spraying/'.'update', 'id' => $model->id_spraying]);
},
'width' => '100px'
],
But I need to make that on clicking the link the update form pop in a modal window, because there will around 50 rows in this GridView, and they will need to be modified frequently, so going back and forth is not so good.
This is howit looks now: