Check documentation for the latest version of dhtmlxSuite focusItem DHTMLX Docs

focusItem

scrolls Tree to the indicated item to make it visible and sets focus on it

void focusItem(number|string itemId);
itemIdnumber|stringthe item id

Example

// set forcus to the item with the id=3
myTree.focusItem(3);

Related samples

Back to top