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

getSelectedId

returns the selected item's id

string|number getSelectedId();

Returns

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

Example

var id = myTreeView.getSelectedId();

Back to top