The following methods should be used to expand/collapse a row in the TreeGrid:
treegrid.openItem(rowId); treegrid.closeItem(rowId);