将整个网格发布到控制器

编程入门 行业动态 更新时间:2024-10-11 19:21:31
本文介绍了将整个网格发布到控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们有一个包含2个复选框的jqgrid。我想将整个网格数据发布到我的控制器。我使用以下命令。

We have a jqgrid which contains 2 checkboxes. I want to post the entire grid data to my controller. I use the following command.

$("#circleActorsTable").jqGrid('getGridParam', 'data');

如果是Loadonce = true,这将返回整个网格数据。但如果选中复选框,则不会显示更新的数据。 如果

If Loadonce=true, this returns the entire grid data. But if the checkboxes are checked, updated data is not shown. If

Loadonce=false,

然后

null

返回数据。 /> 我使用过:

data is returned. I used:

var circleActorGrid = $("#circleActorsTable").getRowData();

这只返回第一页。如果存在分页,则不返回其他页面数据..

This returns only the first page. If pagination is present, other page data is not returned..

推荐答案

( #circleActorsTable)。jqGrid(' getGridParam',' data'); ("#circleActorsTable").jqGrid('getGridParam', 'data');

如果Loadonce =是的,这将返回整个网格数据。但如果选中复选框,则不会显示更新的数据。 如果

If Loadonce=true, this returns the entire grid data. But if the checkboxes are checked, updated data is not shown. If

Loadonce=false,

然后

null

返回数据。 /> 我使用过:

data is returned. I used:

var circleActorGrid =

( #circleActorsTable)。getRowData(); ("#circleActorsTable").getRowData();

这只返回第一页。如果存在分页,则不返回其他页面数据..

This returns only the first page. If pagination is present, other page data is not returned..

更多推荐

将整个网格发布到控制器

本文发布于:2023-10-10 21:54:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1479859.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   控制器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!