Group by with expand/collapse

I am grouping rows of grid object with first column which is of type text. My second column in grid is of tree type. If I expand the node of second column all child rows of that node gets appended before parent node.

I am using apis of 2.0 version. The same thing was working with previous version.

groupBy operation can be used in plain grid only, it will not work for treegrid