是否可以在 jqGrid 的标题行下显示总计(摘要)行? [英] Is it possible to show totals (summary) row under the header row in jqGrid?

查看:26
本文介绍了是否可以在 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.

这篇关于是否可以在 jqGrid 的标题行下显示总计(摘要)行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆