Sample: dhtmlxTree Different loading modesdhtmlxTree main page
X

Data can be loaded from JSON file or JSON string


reload from JSON object(textarea)
load from external JSON file
 
    <script>
 
        var tree = new dhtmlXTreeObject('treeboxbox_tree', '100%', '100%', 0); 
        tree.setImagePath("../../codebase/imgs/csh_bluebooks/");
        tree.enableDragAndDrop(true);
        tree.loadJSONObject({id:0, item:[{id:1,text:"1111"},{id:2, text:"222222", item:[{id:"21", text:"child"}]},{id:3,text:"3333"}]})
        ....
        tree.loadJSON("big_data.json");
</script> Format of JSON { id:ID, attributes.... , item:[ array of child objects ]}
THIS PAGE CONTAINS SAMPLE FUNCTIONALITY OF PROFESSIONAL EDITION FOR DEMONSTRATION PURPOSE ONLY.
UNAUTHORIZED USE IS PROHIBITED. PLEASE CONTACT SALES@DHTMLX.COM TO OBTAIN A LEGAL COPY OF PROFESSIONAL EDITION.