I am beginner to yii2 & trying to search fields in Gridview using Pjax on search button. I have done this with GET method but I want to do this by using POST method. Then ho
Try using post method of Pjax:
$.pjax.reload({url: url, method: 'POST', container:'#bank-grid'});
This may be helpful to you
Pjax::begin(['id' => 'container-id', 'timeout' => false, 'enablePushState' => false, 'clientOptions' => ['method' => 'POST']])