PDA

View Full Version : [CLOSED]TreeLoad load duplicates data even with clearOnLoad: true



aritchie
6 Oct 2009, 8:30 AM
I'm making a call to refresh a particular tree node, the server returns 1 piece of data but it appears twice in the node after the load call. I'm using 3.02.



// loader config in treepanel
loader: new Ext.tree.TreeLoader({
dataUrl: '/SomeUrl',
clearOnLoad: true // this is supposed to default to true
})




// assume tree and node are good
var loader = tree.getLoader();
loader.load(node, function() {
node.expand();
});


I even tried removing all of the node's child nodes before calling load. This didn't work either.

aritchie
15 Oct 2009, 8:02 AM
I updated my ExtJS this morning to 3.0.2 again. This seems to have fixed the issue. I'm guessing that I was running 3.0.1, not 3.0.2. My apologies.