SlickGrid Column Groups
Asked Answered
N

3

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

Nicolas answered 2/9, 2011 at 15:21 Comment(1)
maybe this help you hariharanpalani.github.io/SlickGrid/examples/…Fortnightly
S
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

Sheerlegs answered 15/4, 2016 at 2:7 Comment(0)
B
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!

Bamboozle answered 17/9, 2012 at 20:49 Comment(0)
S
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

Shushan answered 27/8, 2019 at 20:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.