1
            Main-header

   subhead1 |subhead2 |subhead3

subhead1 |subhead2 |subhead |subhead4


----------------------------------------
        column names come here
----------------------------------------

Can we have the multilevel headers in JQGrids as shown above.Can any one please.

venkatesh
  • 33
  • 1
  • 5
  • If you are still looking for a resolution, there is a new answer on the following question. I think it is the best solution yet. http://stackoverflow.com/a/24016304/2807912 – Thomas Mondelli Jun 24 '14 at 19:05

1 Answers1

1

It's not clear what you mean under subheadres because you placed all column names in the last line and included 3 levels or come kind of headers.

What you can do is use caption option of jqGrid to create "Main-header". You can additionally create one level of column grouping with respect of setGroupHeaders method like described in the documentation. More levels of subheads are not supported.

UPDATED: A possible implementation of multilevel grouping of headers I described in the answer.

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