How to remove the table column headers from Jqgrid

2019-09-07 02:38发布

问题:

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.