Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Yves on Apr 29, 2008 04:47
open dhtmlx forum
smartItemRefresh in the tree

Is there any way to get the code responsible for this method?

I know it's part of the professional version, but you never know what you can get by nicely asking :-)


Thanks.
Answer posted by Support on Apr 29, 2008 06:25
Unfortunately this functionality heavy linked to other parts so it not possible separate it easily
If you not need "delete while refresh" part of functionality you can mimic smartRefreshItem as

    tree.waitUpdateXML=true;
    tree.updateItem=function(itemId,name,im0,im1,im2,achecked){
       tree.setItemText(itemId,name);
    }
    tree.loadXML("url_of_xml");