Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Winger on Aug 21, 2008 16:44
open dhtmlx forum
dhtmlXTreeObject: dynamically open child node triggered by other elements

Hi,

I am using loadXML to load the parent tree element and setXMLAutoLoading to build the subtree dynamically. Is it possible to trigger the setXMLAutoLoading event by other element event instead of clicking the parent tree "+" sign? For example, can I load the subtree element by clicking a drop down box? If so, how can I locate which sub tree to load?

Thanks,

Winger
Answer posted by Support on Aug 22, 2008 02:33
Technically you can call 
          tree.openItem(id);
and tree will load data for related item , if it was not loaded yet. 

>> If so, how can I locate which sub tree to load?
Sorry , but I don't really understood the question
You can load sub items by using parent id and command mentioned above. Item id is common parameter for most in-grid events
If something still unclear - please provide more details about desired behavior