Method to collapse all subrows

Is there any method to collapse all opened subrows made with sub_row_ajax ?

You can use
    grid.cells(i,j).open()
    grid.cells(i,j).close()

More details can be checked here
    dhtmlx.com/docs/products/dhtmlxG … subrowsndd

There is no public method to collapse all sub_rows
You can try to use
    grid._collapsMonolite();
but it not purposed for public usage, so it may have some side effects