Works like a charm. Now I need to check if I can set the page length based

Works like a charm. Now I need to check if I can set the page length based on number of visible rows rather than container size (want children to be hidden unless parent is opened)