dhtmlXTreeObject constructor init caused parentObject is null

Uncaught TypeError: Cannot read property ‘style’ of null.

image
image

===================================================================

but in the tree sample it works.

image
image

in angularjs the dom renderer later than controller js, so document.getelementbyid get null, and the $jquery can select the dom, so it is done by myself.

Please, make sure that the “treeboxbox_tree” container is appended to your page at the moment of initializing the dhtmlxTree.