JQgrid - 没有这样的方法gridunload [英] JQgrid - no such method gridunload

查看:831
本文介绍了JQgrid - 没有这样的方法gridunload的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是最新版本的jqGrid(4.8.2),有一些奇怪的事情:

I am using latest version of jqGrid(4.8.2), and there are some strange:


  1. 没有file:grid.custom.js,in folder(或github)

  1. There is no file: grid.custom.js, in folder(or in github)

在wiki中( http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods )该方法必须在file grid.custom.js

In wiki(http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods) that method must be in file grid.custom.js

最后,在source中我可以找到方法:gridUnload:function(jqGridId),和它看起来很相似(但你必须这样调用这个方法:

Finally, in source i can find method: gridUnload : function ( jqGridId ), and it's look similar(but you must call this method like this:

$.jgrid.gridUnload('jqGridKoeff');

但这种情况真的很奇怪。小心!

But this situation is really strange. Be careful!

推荐答案

网格的新版本有变化。现在你必须调用GridUnload函数,如下所示:

There is a change in newer versions of the grid. Now you have to call GridUnload functions like the following:

$.jgrid.gridUnload(‘#jqGridId’); 

其中jqGridId是id网格

where jqGridId is the id of the grid

这篇关于JQgrid - 没有这样的方法gridunload的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆