how to reload 2 gridview with pjax?

I have 2 gridview on the listing page, upon clicking an action, I can reload one of the grid using pjax but I can’t find any examples to reload “both” the grid in the page.

I found this solution.

disabled both pjax in the grid ‘pjax’ => false and wrap both gridview with one pjax id




 <?php yii\widgets\Pjax::begin(['id' => 'multiple-grid']) ?>


  <?= GridView::widget([.....


  <?= GridView::widget([.....


 <?php yii\widgets\Pjax::end() ?>