Tree Grid with dynamic row grouping

Can I call grid.groupBy(column_index) on tree grid? I wanted to used grid with pagination, grouping, filtering and sorting all together, and I found that treegrid is only best solution.

I believe tree grid supports export to excel and pdf.

Unfortunately the grouping is incompatible with treegrid and pagination functionalities.