I having a Problem in Grouping with pagin

Hi,

Below is the Case:

when i used paging …suppose.my data grid had 3 page…Currently i am on first page.at that time when i going to

call grouping on any of the column it gives me javascript error like 'this.rowsCol[…].childNodes ‘is null or not an object’.

But note down the second case…if i navigate last page of the grid and then try to apply a grouping on any column it works

fine.

Please provide the solution.if possible.



The problem caused by buffering ( the grouping process all rows in grid, but rows in buffer is not ready for real processing yet, so error occurs.
You can solve it by adding next command before grouping
   
    while(grid.addRowsFromBuffer()); //this line will process all rows in buffer
    grid.groupBy(…