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 的标题行下显示总计(摘要)行?


基础教程推荐
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- Chart.js 在线性图表上拖动点 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 直接将值设置为滑块 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01