dhtmlxTree : selectItem and focusItem what's different

dhtmlxTree : selectItem and focusItem what’s different

SELECT
Selects item. If you have a big open tree in a small container - i’ll select with item, but not show it (not move the scroll), if item is under the viewport.
FOCUS
Not selects item. If you have a big open tree in a small container - i’ll not select with item, but show it, if item is under the viewport.


(in second case i moved scroll manually to show you highlight selecting)

thank you, so if i need to choose a node under the viewport,I should
tree.focusItem(“1000”);
tree.selectItem(“1000”);
like this,

Hi, i can’t find the tree.focusItem function in the dhtmlxTree api?
https://docs.dhtmlx.com/api__refs__dhtmlxtree.html

I am using v4.0.3, is it deprecated?

Thanks.

Most probably is a glitch in docs generation
Method is still available and was not marked for removing.
We will update the documention.