Check documentation for the latest version of dhtmlxSuite selectItem DHTMLX Docs

selectItem

selects an item

void selectItem(string|number id);
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