Check documentation for the latest version 6.0 of dhtmlxSuite selectItem DHTMLX Docs

selectItem

selects an item

void selectItem(string|number id);

Parameters

idstring|numberthe item's id (an array of ids, if multiselect is enabled)

Example

myTreeView.selectItem("2");
 
// if multiselect is enabled
myTreeView.selectItem(["2", "3", "5"]);

See also
Back to top