How to remove the table column headers from Jqgrid subgrid

最后都变了- 提交于 2019-12-25 00:41:24

问题


I have the following jqgrid subgrid:
http://jsfiddle.net/mojarame/uDd9J/34/

I am trying to configure it like the following html table that has the jExpander Plugin http://jsfiddle.net/mojarame/S5V6C/12/

But the column headers in the first JS Fiddle Demo for the subgrid on the jqgrid are visible. How can I remove them?


回答1:


The demo with jExpander Plugin don't display any subgrid in my opinion. It display common HTML fragment in the line below. I suppose that what you need is not to create subgrid at all. Instead of this you can display any common HTML fragment which you need.

Look at the very old answer. The corresponding demo where I mostly uses the current jqGrid 4.3.3 display the following

jqGrid just create the row for subgrid data and place div in the cell having colSpan over the whole row. You get the id of the div as subgrid_id parameter of subGridRowExpanded. So you can place in the div any HTML fragment what you want. It must be not only another grid. If I understand correct your requirements then creating your custom HTML fragment with the data will solve your problem.



来源:https://stackoverflow.com/questions/10839824/how-to-remove-the-table-column-headers-from-jqgrid-subgrid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!