Grouping with subgrids getting errors

I am getting strange errors when using groupby with subgrids. Does anyone have any suggestions or is it unable to do both together?
Error I got was this.vp is null in dhtmlxgrid.js

Unfortunately grid with sub grids cannot be grouped with groupBy method.