ng-grid rowspan
ng-grid how to merge rows?
Can you be more specific on what you're trying to accomplish?
Information request provided, and no further comments for at least 2 weeks. Closing on assumption that the raiser has resolved the issue.
@PaulL1 @c0bra I believe the OP was literally asking for the html table "rowspan" behavior, where a cell can span two rows (similar to colspan). Here's an example if you're not familar:

Anyway - was about to log this same issue, can this be re-opened now that you have explicit details?
same example, annotated:

Variations of this have been requested a couple other times:
- https://github.com/angular-ui/ng-grid/issues/845
- https://github.com/angular-ui/ng-grid/issues/259
OK, understand. I'm not sure this is coming any time soon though unless someone submits a pull request including it.
This is now included in the templates tutorial: http://ui-grid.info/docs/#/tutorial/317_custom_templates.
Merging all cells in a row is reasonably straightforward, merging just some cells would be somewhat more complex, but still possible through that same mechanism.
Thanks @PaulL1! This is helpful, but I think this is applicable to the use case of colspan instead of rowspan. Any ideas on a way to achieve the same merging effect vertically?
If you are looking to do this you could probably do it visually using a custom cell template. I know that it's less than ideal but it will fix your problem.
Awesome, it seems to be working thanks!
Hi, I am also stuck up with the same rowspan issue and not able to find any sample example for it. Going through the discussion chain found that it can be done, can anyone share the sample example
Hi, Has the ROWSPAN feature added to ui-grid or not? I am not able to find any inforamtion about it.
found a workaround for doing it
On Mon, Dec 21, 2015 at 7:39 PM, Trupti Ranjan Swain < [email protected]> wrote:
Hi, Has the ROWSPAN feature added to ui-grid or not? I am not able to find any inforamtion about it.
— Reply to this email directly or view it on GitHub https://github.com/angular-ui/ui-grid/issues/1464#issuecomment-166312787 .
Can you share the workaround.
@trupti18 do you have a workaround for the ROWSPAN feature?
Do you have any informations about ROWSPAN, anyone know an example of ROWSPAN ???
hello @infyravi, could you please share your solution? thanks
I arranged a RowSpan hack, suitable for my need, not necessarily for everyone: I use position:absolute on the top row's cell and display:none on the spanned rows' cells. See http://plnkr.co/edit/TiQFJnyOvVECOH2RL4ha?p=preview
Everything is in the ng-style in the cell template, which uses a 'spanCompany' attribute to know the number of rows to override. We have to calculate the height and width since we are position:absolute. This also means the width has to be expressed in pixels, not %.
ng-style="{ height:21*row.entity.spanCompany + \'px\', width:col.width+\'px\', position:\'absolute\', display:row.entity.spanCompany==0?\'none\':\'block\', borderStyle:\'dotted\', borderWidth:\'1px\'}"
@bvoisin thanks for your solution; but the div.ui-grid-row has a dynamic style, "transform: translateY(); ", which is a big problem when scrolling So, do you have any idea to solve transform effecting?
Arg... indeed, here is a modified plunker that shows the scrolling problem @qmy777 just pointed out: http://plnkr.co/edit/T4xUE60QvH8gxuJE31o4?p=preview
just scroll down.
I will look into it in the coming days.