Want to navigate through the grids or trying to sort and filter data without waiting for the entire page to load?
You need yii\widgets\Pjax and wrap it around GridView.
In the view:
use yii\grid\GridView; use yii\widgets\Pjax; Pjax::begin(); echo GridView::widget([ .... ]); Pjax::end();
This will cause all actions within the Grid to run in Ajax mode, including links.
To exclude links from being processed by Pjax, add
data-pjax="0" (zero) to the <a>.
use kartik\grid\GridView; echo GridView::widget([ 'pjax' => true, .... ]);