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 的标题行下显示总计(摘要)行?
基础教程推荐
- 如何在特定日期之前获取消息? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
