Is it possible to show totals (summary) row under the header row in jqGrid?(是否可以在 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 的标题行下显示总计(摘要)行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以在 jqGrid 的标题行下显示总计(摘要)行?


- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- 失败的 Canvas 360 jquery 插件 2022-01-01