php - yii2: ActionColumn on GridView not working with ActiveForm -


customised actioncolumn worked on gridview, until added activeform on gridview can select multiple rows (with checkboxcolumn) , run action on whole items.

nothing happen when click on action items, works when copy/paste path on browser.

<?php $form = activeform::begin(); ?>     <?= gridview::widget([         'dataprovider' => $dataprovider,         'showheader' => true,         'showonempty'=>false,         'formatter' => ['class' => 'yii\i18n\formatter','nulldisplay' => '0'],         'columns' => [             ['class' => 'yii\grid\serialcolumn'],              'referral',             'membership',              /*other attributes*/             ['class' => 'yii\grid\actionref'],             ['class' => 'yii\grid\checkboxcolumn'],         ],     ]); ?>       <input type="button" class="btn btn-danger" value="disable" id="disablebutton" >      <?php activeform::end(); ?> 

my "disable" button work in form.

i tried start activeform after gridwiew, button (naturally) didn't work.

the default yii2 gridview don't work active view

i think should use kartik builder form , tabular form extension.


Comments