组 Headers 的 jqGrid "double level"
jqGrid "double level" of Group Headers
(版本免费jqgrid-4.13.6)
是否可以创建组 Headers 的 "double level"?
我附上图片以了解我的问题(这只是一张免费绘图)
可以多次调用 setGroupHeaders
以获得所需的结果。例如代码
$grid.jqGrid("setGroupHeaders", {
groupHeaders: [
{startColumnName: "name", numberOfColumns: 2, titleText: "Main information"},
{startColumnName: "amount", numberOfColumns: 5, titleText: "Details"}
]
})
.jqGrid("setGroupHeaders", {
groupHeaders: [
{startColumnName: "amount", numberOfColumns: 3, titleText: "<em>Price</em>"},
{startColumnName: "closed", numberOfColumns: 2, titleText: "Shiping"}
]
});
创建两级列 headers。见https://jsfiddle.net/OlegKi/8atan0o4/,如下图所示
(版本免费jqgrid-4.13.6)
是否可以创建组 Headers 的 "double level"?
我附上图片以了解我的问题(这只是一张免费绘图)
可以多次调用 setGroupHeaders
以获得所需的结果。例如代码
$grid.jqGrid("setGroupHeaders", {
groupHeaders: [
{startColumnName: "name", numberOfColumns: 2, titleText: "Main information"},
{startColumnName: "amount", numberOfColumns: 5, titleText: "Details"}
]
})
.jqGrid("setGroupHeaders", {
groupHeaders: [
{startColumnName: "amount", numberOfColumns: 3, titleText: "<em>Price</em>"},
{startColumnName: "closed", numberOfColumns: 2, titleText: "Shiping"}
]
});
创建两级列 headers。见https://jsfiddle.net/OlegKi/8atan0o4/,如下图所示