简体   繁体   English

jqGrid动态列和分组

[英]jqGrid Dynamic Columns and Grouping

I am using jqGrid for my grids. 我正在使用jqGrid作为我的网格。 I am struggling with an issue. 我正在努力解决一个问题。 My client wants a grid that looks like this: 我的客户想要一个看起来像这样的网格:

网格样本

The problem here is the dynamic columns and grouping of Auto Makes. 这里的问题是Auto Makes的动态列和分组。 I really am not sure how to accomplish this. 我真的不知道如何做到这一点。 The idea is the count on the far right is a sum of the auto make grouping. 这个想法是最右边的计数是自动制作分组的总和。 The auto makes can change depending on the results of the rest of the query. 自动生成可以根据查询其余部分的结果进行更改。

I tried to just use the row grouping function in jqGrid and accomplished something similar but it visual was very different. 我试图在jqGrid中使用行分组功能并完成类似的操作,但它的视觉效果非常不同。 He is insisting on this format. 他坚持这种格式。

If anyone can point me in the right direction to figure this out it would be great. 如果有人能指出我正确的方向来解决这个问题,那就太好了。 I really am not sure where to start with this. 我真的不知道从哪里开始。

Thanks in advance for any help. 在此先感谢您的帮助。

I think you are looking for header grouping Try this, 我认为你正在寻找标题分组试试这个,

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:groupingheadar http://www.trirand.com/jqgridwiki/doku.php?id=wiki:groupingheadar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM