DHTMLX Docs & Samples Explorer

selectItem(itemId,mode,preserve)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxtree.js

selects the specified node ( and optionally fires the onClick event)

  • itemId - (string) the node id
  • mode - (boolean) if true, the script fires the 'onClick' event for the specified node
  • preserve - (boolean) if true, the earlier selected nodes will be preserved