Categories | Question details Back To List | ||
Problem with find option in Tree using JSON Hello, I am using evaluation package of dhtmlxSuite 2009 Rel.2 DHTMLX 2.5. I am working on tree using loadJSON for data. I included find option, I got below error if there is no matched node/data. Message: 'this.item' is null or not an object - Line: 201 -Char: 14 - Code: 0 -URI: http://10.0.0.110/dhtmlxsuite/dhtmlxTree/codebase/dhtmlxtree.js The same code is working without any errors If I use loadXML for data and Included my code: <link rel="STYLESHEET" type="text/css" href="dhtmlxTree/codebase/dhtmlxtree.css"> <script src="dhtmlxTree/codebase/dhtmlxcommon.js"></script> <script src="dhtmlxTree/codebase/dhtmlxtree.js"></script> <script src="dhtmlxTree/codebase/ext/dhtmlxtree_json.js"></script> <div> <input type="text" id="stext" width="200px"> <a href="javascript:void(0)" onClick="tree.findItem(document.getElementById('stext').value,0,1)"> Find </a> | <a href="javascript:void(0)" onClick="tree.findItem(document.getElementById('stext').value)"> Find Next</a> | <a href="javascript:void(0)" onClick="tree.findItem(document.getElementById('stext').value,1)"> Find Prev </a> </div> <div id="treeboxbox_tree" style="width:250px; height:218px;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"/> <script> tree = new dhtmlXTreeObject("treeboxbox_tree", "100%", "100%", 0); tree.setSkin('dhx_skyblue'); tree.setImagePath("dhtmlxTree/codebase/imgs/csh_bluebooks/"); tree.enableSmartXMLParsing(true); tree.enableTreeLines(0); //tree.loadXML("tree3_14_selection_sorting_navigation.xml"); tree.loadJSON("big_data.json"); </script> Please let me know there are anychanges need to be done from my end or Do I need to download the latest files. Thanks, RamaRao R. Answer posted by Alex (support) on Nov 17, 2009 02:55 Hello, the issue is confirmed. Please, contact us at support@dhtmlx.com to receive the fix. |