ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Is it possible to show group of columns headers with common column header and also group of rows under common row header using ngGrid

Open madasuk opened this issue 11 years ago • 6 comments

Please see the plunker http://plnkr.co/edit/DMH6eJ1wQaV750B6jNDj?p=preview. For '01-14', Is it possible to represent spend, shpts, perc under a common column header Q1-14 in ngGrid? The same columns I want to repeat under Q2-14, etc. I have attached sample image for reference. requirednggrid

madasuk avatar Dec 31 '14 05:12 madasuk

The column headers aren't something we can natively do, but you could do with a custom header. There would be a bit of fiddling around to get a custom template that worked well.

The row headers are a bit harder, you could add a custom rowHeader using the addRowHeader method, but the grouped/multi-row bit I think would be very difficult in our current setup.

PaulL1 avatar Dec 31 '14 06:12 PaulL1

That is fine PaulL1, with row header, I will manage it through different coloring of the rows in the table for row groups. If you don't mind, could you please provide me the code to make the column header feature to work with custom header?

madasuk avatar Dec 31 '14 06:12 madasuk

I haven't written that code myself before. I think there'd be a fair amount of trial and error in using the headerTemplate and headerCellTemplate to achieve this.

PaulL1 avatar Dec 31 '14 19:12 PaulL1

Solution provided, and no new comments for over 4 weeks. Assuming issue is resolved, closing.

PaulL1 avatar Jan 29 '15 23:01 PaulL1

i too facing the same issue? is it implemented or is there any alternative for grouping? please help.

send4sbk avatar Jul 15 '16 17:07 send4sbk

Its 2017, any updates on this ? has this feature been implemented ?

raghu185 avatar Jan 20 '17 12:01 raghu185