From here Subgrid/Events:
with subGridRowExpanded: function(subgrid_id, row_id) { ... }
you can catch the event.
and with
$("#list2 tr:has(.sgexpanded)").each(function () {
num = $(this).attr('id');
$(this).collapseSubGridRow(num);
});
you can collapse all expanded subgridrow.