Answer the question
In order to leave comments, you need to log in
How to add to gridview Pjax data request->queryParams input value not from gridview?
The page displays a gridview. The gridview itself is wrapped in pjax.
Filtering by fields works, everything is correct, but I need to add one more input or checkbox to this filtering, which has nothing to do with the grid. Whenever filtering in request->queryParams, only grid fields arrive, how to add a left input there?
<?= Html::checkbox('test', true, ['label' => 'test', 'id' => 'test']) ?>
<?php \yii\widgets\Pjax::begin([]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
...
<?php \yii\widgets\Pjax::end(); ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question