Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raffaele Gambelli on Sep 08, 2009 02:31
open dhtmlx forum
Disable tree caching for already expanded items

Hi all,

I have a tree where I'm loading data calling:

tree.setXMLAutoLoading("/myAction.do");
tree.loadJSON("/myAction.do?id=.....");

I've noticed that, for already expanded items in tree, myAction.do isn't called, and that is a problem because if I change those items I don't see in tree their refreshed states.

So my question is, what should I do to disable this mode and to always call myAction.do to reload data?

Thanks for helping and best regards

Raffaele Gambelli
Answer posted by Alex (support) on Sep 08, 2009 03:45

Hello, 

you can set onOpen event handler that will always load branch from the server.

tree.attachEvent("onOpenStart",function(id){

/*your code here*/

})