将整个网格发布到控制器 [英] Post entire grid to controller
问题描述
我们有一个包含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',< span class =code-string>' 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..
这篇关于将整个网格发布到控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!