AdapTable makes it easy to include grouped row information in Layouts; this is done via the GroupedColumns property that specifies which Column(s) should be grouped.
Grouped columns can be included in Layouts either at Design-Time through Predefined Config or at Run-Time via the Layout Wizard.
The Layout will also store the correct sorting for the Grouped Column (either the default sort or a Custom Sort - see Grouping Demo for more details)
Note: if you want the Layout to include details of which grouped rows are open, set the includeOpenedRowGroups property to true in Layout Options.
This is what we have done in this demo - open some grouped rows and then refresh the page and see that the same rows re-open.