How could i find out if a subgrid is expanded?

How could i find out if a subgrid is expanded?

In case of treeGrid it can be checked by

var state = grid.getOpenState(rowId);

if branch has been opened then method returns true