Yii2 : Search in Gridview using Pjax POST Method with pagination

后端 未结 2 809
无人共我
无人共我 2021-02-06 08:19

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

相关标签:
2条回答
  • 2021-02-06 09:06

    Try using post method of Pjax:

    $.pjax.reload({url: url, method: 'POST', container:'#bank-grid'}); 
    
    0 讨论(0)
  • 2021-02-06 09:16

    This may be helpful to you

    Pjax::begin(['id' => 'container-id', 'timeout' => false, 'enablePushState' => false, 'clientOptions' => ['method' => 'POST']]) 
    
    0 讨论(0)
提交回复
热议问题