Check documentation for the latest version 6.0 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);

Parameters

itemIdnumber|stringthe item id

Example

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

Related samples

Back to top