Dear Support,
i use the commercial license of dhtmlxTree. Build 81009
if i want to use the function saveOpenStates() i get an error “user_tree.saveOpenStates is not a function”
Can you please help me?
greetings
Please be sure that you have included
dhtmlxtree/codebase/ext/dhtmlxtree_xw.js
which contains functionality necessary to work with saved states.
Now i included it manualy, but same error. Here my code:
<link rel=“STYLESHEET” type=“text/css” href="…/script/treetool/dhtmlxtree.css">
<script src="…/script/treetool/dhtmlxcommon.js"></script>
<script src="…/script/treetool/dhtmlxtree.js"></script>
<script src="…/script/treetool/ext/dhtmlxtree_start.js"></script>
<script src="…/script/treetool/ext/dhtmlxtree_wz.js"></script>
[…]
var lastDelId;
user_tree=new dhtmlXTreeObject(“inhalt_treemenu”,“100%”,"",0);
user_tree.setImagePath("…/script/treetool/imgs/");user_tree.setDragBehavior(“complex”);
user_tree.enableDragAndDrop(1);
user_tree.setDragHandler(myDragHandler);user_tree.setOnDblClickHandler(onNodeSelect);
user_tree.attachEvent(“onOpenEnd”,function(){
window.setTimeout(function(){ // need to wait while open tread will be closed
user_tree.saveOpenStates();
},1);
});
user_tree.loadXML(“xml.php”,function(){ user_tree.loadOpenStates(); });
do i have zu configure some files to include dhtmlxtree_wz.js correctly?
While you are using
dhtmlxtree_wz.js
Correct file name is
dhtmlxtree_xw.js
If necessary - you can contact us directly at support@dhtlmx.com - we will provide a separate sample for functionality in question.