Ag-grid: [row model] lazy load child rows in groups

2

The heavy lifting would of course fall on the data source, but implementing hooks for this would make it possible to implement.

scotthovestadt picture scotthovestadt  ·  13 Nov 2015

Most helpful comment

3

ah right, i got mixed up with what pivot meant. so basically you want lazy loading of the child groups. yes i'll get that in at some point. i'll rename this issue.

re PR, i probably won't accept a PR on this, as it's core to the workings of the grid, so i'll prob have my own ideas on how this should be done with regards the rest of the grid.

ceolter picture ceolter  ·  16 Nov 2015

All comments

0

I think you are looking more for a complete end-to-end reporting application rather than a gui grid???!!! Not sure this request fits in what I was aiming for. Any examples or further explanation of what you mean??

ceolter picture ceolter  ·  13 Nov 2015
0

Essentially, I want row grouping with a remote data source. Obviously the grid can't do the grouping for me because it won't have all the data due to infinite scrolling. Here is my need:

  • Enable mode so all rows passed from remote datasource are considered top-level "groups"
  • When a group is expanded, make a second call to remote datasource to fetch rows in group and render them

I actually have a working implementation of this, but it's a bit hacky right now. I'd prefer to have it supported in the grid.

Would you accept a PR?

scotthovestadt picture scotthovestadt  ·  13 Nov 2015
3

ah right, i got mixed up with what pivot meant. so basically you want lazy loading of the child groups. yes i'll get that in at some point. i'll rename this issue.

re PR, i probably won't accept a PR on this, as it's core to the workings of the grid, so i'll prob have my own ideas on how this should be done with regards the rest of the grid.

ceolter picture ceolter  ·  16 Nov 2015
0

+1

ildarnm picture ildarnm  ·  16 Nov 2015
0

+1 Really need it in my project.

pengx17 picture pengx17  ·  12 Feb 2016
0

+1

tiberiuzuld picture tiberiuzuld  ·  13 Apr 2016
0

+1

aznotins picture aznotins  ·  3 May 2016
0

+1

xtreemrage picture xtreemrage  ·  3 Jun 2016
0

+1

squarewave24 picture squarewave24  ·  5 Aug 2016
0
ceolter picture ceolter  ·  23 Jan 2017
0

this is now done, part of the Enterprise Row Model

ceolter picture ceolter  ·  7 Jun 2017
2

Is it possible to turn this off and get the page with groups already expanded using groupDefaultExpanded: -1? This setting doesn't seem to do anything with the server-side model.

tomasreichmann picture tomasreichmann  ·  2 Jul 2018