JqG​​rid setCell方法,在网格中插入空白行

发布于 2024-08-27 11:54:30 字数 203 浏览 4 评论 0原文

我有一部分代码来更新单元格值,如下所示:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不疑不惑不回忆 2024-09-03 11:54:30

您确定这就是导致问题的原因吗?我通读了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文