Parent and child rows in ng-grid
Hi, I would like to know whether Is it possible to create child rows under a parent row in ng-grid?. For example: Suppose if I have a number rows in ng-grid where each row with attributes of a school, and when I select a single row in it, it will display a number of rows below to it with each row giving details of children under that school. Any help is appreciated.
It might can be done with a custom row template, but I think you would have a lot of issues with it even if you could pull it off. Scrolling probably depends on all row heights being the same.
Child grids and multiple height rows are something we are considering for 3.0
I would tackle this by putting the "sub view" (which is what the child row is, I guess) outside the grid. Like in a pane beneath it. Then either use the row selection event or a custom row template with a "View" button and then populate the pane with the row's data on select or click.
we had a similar requirement. we had added a pane below the grid and show/hide the pane on mouse hover on the cell...Even you can add another grid to the pane as it is not nested inside the first one...
@theluckin, Even we ad same requirement, can you show us a bit of way of handling this. how you did it
regards
@theluckin Can you please share the code snippet or plunker
Regards.
Sure thing, will share a plunker soon...
http://jsfiddle.net/champakkc/FWC34/