Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ankit on Jun 12, 2009 04:02
open dhtmlx forum
unable to show (+/-) sign

hi,

The code u hav sent works, it shows " + " sign,but on click of tht "plus" ,it is not showing me  further hierarchy.

I think dere might b some problem wid the

===========================================

mytree.setXMLAutoLoading(edit4TreeGrid);

mytree.setXMLAutoLoadingBehaviour("function");

===========================================

bcz im retriving data from database not xml.

can u help me out .

thnkx

Answer posted by Alex (support) on Jun 12, 2009 05:44

Hello, 

please check that edit4TreeGrid correctly adds (or loads) a new branch. A small example:

function edit4TreeGrid(parentId){

tree.insertNewItem(parentId,itemId_1,itemText_1);

...

tree.insertNewItem(parentId,itemId_N,itemText_N);

}

or

function edit4TreeGrid(parentId){

tree.loadXML(path_to_server_script+"?id="+parentId);

}