| Sample: dhtmlxTree | Different loading modes | dhtmlxTree main page |
Data can be loaded from JSON file or JSON string
reload from JSON object(textarea) load from external JSON file |
<script></script> Format of JSON { id:ID, attributes.... , item:[ array of child objects ]}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");
| © DHTMLX LTD. All rights reserved |