Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Aug 27, 2008 20:43
open dhtmlx forum
Refresh Tree

Hi,
Iam loading the grid through an AJAX call..My requirement is that when i click some radio button on my screen the tree should load from a new XML..
I have written 2 Ajax calls to load the tree initially and when some radio button is clicked..The problem here is..Though the XML formed(through Ajax Call to server side) after i click the radio button is correct,my tree is not geting reloaded or refreshed...
I just try giving tree1.deleteChildItems(0); ....But still its not working..Kindly tell what has to be done...
Answer posted by Support on Aug 28, 2008 05:59
The next two lines is enough to reload the tree
    tree1.deleteChildItems(0)
    tree1.loadXML(url);

If after such command still old state shown in tree, please be sure that loaded URL not cached by browser. 

( Mentioned command will not work in case of SmartRendering mode, with is known issue in current version )
Answer posted by Support on Aug 28, 2008 05:59
The next two lines is enough to reload the tree
    tree1.deleteChildItems(0)
    tree1.loadXML(url);

If after such command still old state shown in tree, please be sure that loaded URL not cached by browser. 

( Mentioned command will not work in case of SmartRendering mode, with is known issue in current version )