TreeGrid and paging

Hi,
I’m using dhtmlx suite 3.0 pro and I was trying to use the TreeGrid with paging.
I call something like
this._dhtmlxgrid.enablePaging(true, 5…)

then I load a few rows using
this._dhtmlxgrid.parse(…)

and everything works fine.

And now I have page 1 loaded in this way

  • row1
  • row2
  • row3
  • row4
  • row5

then I try to add a new child to row1
this._dhtmlxgrid.addRow(“Row1_1”, [“ValueA”, “ValueB”], null, “row1”, null, true);
and what I obtain is this

  • row1
    • row1_1
  • row2
  • row3
  • row4

That is, row5 has moved to page 2.
Is it possible? Do you know whether it is supposed to work? (Please, don’t say me “No” :slight_smile:)

Best regards, Andrea Pirola

Unfortunately this is the expected behavior for treeGrid and it cannot be modified.

Hi,
I wonder how it is possible that is the intended behavior.
I mean, if I’ve a treegrid with a sublevel with 40 rows and I use a paging with size 10, I’ll see pages with only rows of the sublevel so I’ll not be able to collapse that node without changing page.

best regards, Andrea Pirola

If you are viewing the last 10 rows of sublevel you can’t collapse rows without changing page.