а

dhtmlxTree : selectItem and focusItem what's different


#1

dhtmlxTree : selectItem and focusItem what’s different


#2

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)


#3

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


#4

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.


#5

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