Open all tree nodes does not work in firefox/mozilla 3.0 ( m


var dhxWins = new dhtmlXWindows();
dhxWins.setImagePath(“js/dhtmlxWindows/codebase/imgs/”);
dhxWins.enableAutoViewport(true);
dhxWins.setSkin(“clear_green”);
if(!dhxWins.window(“modify_standard”)){ //
w1 = dhxWins.createWindow(“modify_standard”,10, 10, 600, 500);
w1.center();
w1.setText(“Lineage Tree”);
tree1=new dhtmlXTreeObject(‘treebox1’,“100%”,“100%”,0);
tree1 = w1.attachTree();
tree1.setImagePath(“js/dhtmlxTree/codebase/imgs/”);
tree1.loadXML(’<% out.print(Constants.APPLICATION_URL); %>’+“ontologysearch.do?Lineage=lineage&lineagegoid=GO:0005634”);
tree1.openAllItems(0);
} else {
dhxWins.window(“modify_standard”).show();
dhxWins.window(“modify_standard”).center();
}




 



Hi,



The dhtmlxtree does not display tree in open state. however works fine in IE. could you please help with it. The code we are using is included above.

Data loading is async, you need to call the command only after data loaded in tree

tree1.loadXML(’<% out.print(Constants.APPLICATION_URL); %>’+“ontologysearch.do?Lineage=lineage&lineagegoid=GO:0005634”,function(){
tree1.openAllItems(0);
});