YII 2.0 GridView更新 [英] YII 2.0 GridView update
本文介绍了YII 2.0 GridView更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有通过javascript更新yiigridview的问题。
我试图用yii 1.1方式:
$ $ $ $ $ $ $ $ $ $ $ jQuery.fn.yiigridview.update('grid- ID');
但是这让我错误:'undefined不是函数'
如何使用javascript更新Yii framework 2.0中的整个GridView小部件(或只有一行)?
我在这里找到了解决方案 http: //www.yiiframework.com/wiki/655/how-to-use-gridview-with-ajax/
使用pjax:
$ pjax.reload({容器: '#idofyourpjaxwidget'})。
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?
解决方案
I have found solution here http://www.yiiframework.com/wiki/655/how-to-use-gridview-with-ajax/ Using pjax:
$.pjax.reload({container:'#idofyourpjaxwidget'});
这篇关于YII 2.0 GridView更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文