Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YII 2.0 GridView update

Tags:

gridview

yii2

I've got problem with updating yiigridview via javascript. I'm trying to use it yii 1.1 way:

jQuery.fn.yiigridview.update('grid-id'); 

but this gets me the error: 'undefined is not a function' How to update the whole GridView widget (or only one row) in Yii framework 2.0 using javascript?

like image 894
kirSeNN Avatar asked Aug 14 '14 10:08

kirSeNN


1 Answers

I have found solution here http://www.yiiframework.com/wiki/655/how-to-use-gridview-with-ajax/ Using pjax:

$.pjax.reload({container:'#idofyourpjaxwidget'});
like image 113
kirSeNN Avatar answered Oct 05 '22 08:10

kirSeNN