In grid we have
docs.dhtmlx.com/api__dhtmlxgrid … 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?
docs.dhtmlx.com/api__refs__dhtm … thods.html
In grid we have
docs.dhtmlx.com/api__dhtmlxgrid … 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?
docs.dhtmlx.com/api__refs__dhtm … thods.html
I tried to use
[code]
refreshItem();
[/code
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:
myTree.deleteChildItems(0)
and then populate new data:
myTree.load(url)