3

Kindly see the following image.

enter image description here

How would I achieve the same span in cols and rows ?

madLokesh
  • 1,860
  • 23
  • 49
psms
  • 851
  • 3
  • 18
  • 35

1 Answers1

4

Here is the demo for the table structure you are looking for

Demo

In left panel, go to 'Frozen Cols.Group Header(new)'. Under that go to 'Group Header - with colspan style' & check out grid configuration.

You need to call 'setGroupHeaders' method like this:

jQuery("#id").jqGrid('setGroupHeaders', {
  useColSpanStyle: true,   
  groupHeaders:[{startColumnName: 'Permanent', numberOfColumns: 2, titleText: 'group 1'}]
});

Documentation Link

C.P.
  • 1,182
  • 3
  • 13
  • 32