是否可以在 jqGrid 的标题行下显示总计(摘要)行?
我想将总计(汇总)行放在 jqGrid 的标题行下方?这可能吗?
I would like to put the totals (summary) row under the header row in jqGrid? Is this possible?
详细解释:
转到:http://www.trirand.com/blog/jqgrid/jqgrid.html在左侧导航菜单中,转到:分组 -> 远程数据(按总计排序)
Go to: http://www.trirand.com/blog/jqgrid/jqgrid.html In the left nav menu go to : Grouping -> Remote Data (sorted with grandtotals)
查看网格底部的最后一个总计"行.我想将该行放在顶部的标题行下方.(我不需要分组)
See the last 'Totals' line at the bottom of the grid. I would like to put that line under the header row at the top. (I don't need grouping)
谢谢.
推荐答案
如果我理解你的正确你想改变页脚行的位置(如果你使用 footerrow:true
创建)网格体的顶部直接位于网格柱的下方.为此,您可以执行以下操作
If I understand you correct you want to change position of the footer row (which created if you use footerrow:true
) on the top of the grid body direct under the grid columns. To do this you can do following
$("div.ui-jqgrid-sdiv").after($("div.ui-jqgrid-bdiv"));
或
var grid = $("#list"); // your grid
var gview = grid.closest("ui-jqgrid-view"); // get div#gview_list
$("div.ui-jqgrid-sdiv",gview[0]).after($("div.ui-jqgrid-bdiv",gview[0]));
如果您只想在页面上的一个特定网格上移动页脚.
if you want to do the movement of the footer only on one specifig grid on the page.
相关文章