Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SlickGrid Column Groups

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

like image 794
Varmint Avatar asked Sep 02 '11 15:09

Varmint


2 Answers

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

like image 52
Naresh Nagabhushanam Avatar answered Oct 05 '22 23:10

Naresh Nagabhushanam


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!

like image 33
Yarneo Avatar answered Oct 06 '22 01:10

Yarneo