Wednesday 11 October 2017

Yii2 Pjax Reload Grid view and stay on same page


Yii 2 Pjax -    In order to stay in same page when using Pjax reload() use the below code,

 $.pjax.reload({
container:'.grid-view',
url: $('.grid-view li.active a').attr('href')
});



No comments:

Post a Comment