Is there something like clear and load for dhtmlxtree


In grid we have … dload.html

Do we have anything equivalent for dhtmlxtree when we are using json as the datasource
or how do i achieve such a function? … thods.html


I tried to use

but it gives me this error. Any idea why. The tree is loaded as it is

Uncaught TypeError: a.indexOf is not a function at Object.url (https://app/js/dhtmlx/codebase/dhtmlx.js:9:21841) at window.(anonymous function).dhtmlXTreeObject._loadDynXML (https://app/js/dhtmlx/codebase/dhtmlx.js:9:674655) at window.(anonymous function).dhtmlXTreeObject.refreshItem (https://app/js/dhtmlx/codebase/dhtmlx.js:9:658137) at https://app/manageaccount/20:1721:32 at https:/app/js/dhtmlx/codebase/dhtmlx.js:9:15064 ]

I am using JSON for the tree.


You may try to clear your tree using the:
and then populate new data: