Collapse all other nodes when one node gets selected

In dHTMLXTree, Is it possible to collapse all other nodes when we select one particular node? The API has two methods closeAllItems() and closeItem(). Not sure if we can achieve this using those methods