I have found examples of adding a row to an existing grid (basically, just push some JSON into the model), but my "new row" needs to have all-new columns, so that doesn't work for me.
How about a cellTemplate that is styled so that 1) it is hidden initially and 2) it appears on the line below the targeted row? Anyone out there attempt something like this? Literally any ideas would be welcome at this point. Thank you in advance for your time and expertise. On Friday, December 20, 2013 11:30:33 AM UTC-6, Rob Hensley wrote: > > Hello. I am fairly new to Angular, and I am attempting to solve a problem > that would be easy in jQuery, but I having a tough time imagining the > "Angular solution" to this problem. > > Basically, I have an ng-grid, and I would like to add another ng-grid (or > some similar object) under each row. Sort of like an ng-grid with a group > option, but with all of the ng-grid sorting, etc. on the top-level grid. > > If this were jQuery, I would just build my HTML dynamically and append to > the outerHtml of each row. Not only does that seem the antithesis of good > Angular design, it seems ng-grid actively tries to stop you from > manipulating the DOM in this manner. > > I am not expecting production-ready code from this post; I just need some > ideas to get me started. Thank you in advance for your time. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
