Check documentation for the latest version of dhtmlxSuite getSelectedId DHTMLX Docs

getSelectedId

returns the selected item's id

string|number getSelectedId();
string|numberthe selected item's id (an array of ids, if multiselect is enabled)

Example

var id = myTreeView.getSelectedId();

Back to top