JqGrid setCell方法,在网格中插入空白行
我有一部分代码来更新单元格值,如下所示:
jQuery("#myGridDiv").jqGrid('setCell', myRowToEdit, myColToEdit, myNewValue);
就是这样,有时会在网格末尾插入一个空白的“虚拟”行,这种行为有点随机,但经常发生,
任何帮助都会受到真正的赞赏
I have a portion of code to update a cell value like this:
jQuery("#myGridDiv").jqGrid('setCell', myRowToEdit, myColToEdit, myNewValue);
that's about it, and sometimes it happens that a blank 'dummy' row is inserted at the end of the grid, this behavior is somewhat random but occurs often,
any help will be really appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您确定这就是导致问题的原因吗?我通读了 jqGrid 3.6.4 源代码,但没有真正跳出来。也许您的 jqGrid (或应用程序)上有一些其他代码导致了此问题。
我建议您删除代码以尝试隔离问题,或者在您的问题中发布更多代码。
Are you sure this is what is causing the problem? I read through the jqGrid 3.6.4 source code and nothing really jumps out. Perhaps you have some other code on your jqGrid (or application) that is causing this problem.
I suggest either removing code to try to isolate the problem, or for you to post more code in your question.