1

I'm using the jqGrid available at http://www.trirand.com/jqgrid/jqgrid.html and I can't find a way to disable its expand/collapse button on the top right of the header. Anyone know if there's an option to do that?

enter image description here I tried jQuery("#list13").hideCol('subgrid');
but it does not work and made it worst.

enter image description here

deepak kumar
  • 229
  • 2
  • 3
  • 12

2 Answers2

0

You need adjust additionally the value of colspan attribute of td.subgrid-data which hold the main information of subgrid. The structure of the subgrid row you can see on the picture below

enter image description here

I answered already on very close question. In the answer you should find all information and demos needed to solve your problem.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798
0

If you want to disable the main grids toggle button then you can set

hidegrid: false

If you are trying to disable or hide the subgrids expand and collapse button then use this on loadcomplete

jQuery("#GridTeableID").jqGrid('hideCol', "subgrid");
PUBG
  • 199
  • 2
  • 12