dhtmlXTree focusitem error no scroll

It seems that tree.focusItem(NodeId); does not scroll to node. Any idea ?

but tree.selectItem(NodeId); work perfectly.

Please check if your tree’s container has styles like “overflow: auto”. focusItem method can only scroll in the tree, not in the tree’s container.