Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by xxx on Apr 01, 2008 20:57
open dhtmlx forum
dhtmlx Tree

How to know the tree has been loaded completely.. is there any event fired. after the loadXML statement i want to know the no of children in that tree
Answer posted by Support on Apr 02, 2008 00:07
There are two ways to detect moment , when data loaded in tree

a) onXLE event
   tree.attachEvent("onXLE",function(){
       //will be called after any xml loaded
    });

or

b) second parameter of  loadXML command
    tree.loadXML("some.url",function(){
       //will be called after data loaded in grid
    })