16

Is there a way to add a column groupings? For example:

   Unit 1    |    Unit 2    |
Pre Mid Post | Pre Mid Post |
--- --- ---- | --- --- ---- |
 2   4   5   |  3   4   4   |
 1   2   4   |  3   4   5   |

Basically, I need a header row for Unit that has three subcolumns in the Unit group; Pre, Mid, and Post.

This concept can also be seen in following pictures:

enter image description here

enter image description here

VividD
  • 10,456
  • 6
  • 64
  • 111
Varmint
  • 161
  • 1
  • 4
  • 1
    maybe this help you http://hariharanpalani.github.io/SlickGrid/examples/example-HeaderGrouping.html – Stiger Sep 05 '13 at 07:38

3 Answers3

2

Yes, There is no columns grouping available in slickgrid but i created a plugin for one level column group.Take a look https://github.com/naresh-n/slickgrid-column-group

1

Unfortunately grouping columns is a low priority for the creator of slickgrid as you can see in the issue post here

Although that issue was written 2 years ago, it was asked again 5 months ago and there was no reply to that post.
Apart from that by looking at his updates in the git history there is no indication it is implemented in any way.

My only suggestion is to try and move to another component. You could maybe see if this could fit your needs: jQuery EasyUI
I actually saw a demo there that has groupings like you wanted: demo

Goodluck!

Yarneo
  • 2,922
  • 22
  • 30
0

You can now do this in the active SlickGrid repo: https://github.com/6pac/SlickGrid

Here's an example: http://6pac.github.io/SlickGrid/examples/example-column-group.html

Andrew
  • 2,368
  • 1
  • 23
  • 30