PDA

View Full Version : Partial tree reload/refresh inserts entire tree into the selected branch?



hornetnz
20 Nov 2012, 5:21 AM
I'm making a function that will refresh the branch of a tree when something in a child row gets updated & saved. The refresh portion appears to be working as far as getting the selected node, but instead of refreshing the content in the branch, its adding the entire tree again into the selected nodes' location.

This is my refresh line. If you need to see more code, let me know.

this.store.reload({ node: this.getView().getSelectionModel().getSelection()[0].parentNode });

mitchellsimoens
22 Nov 2012, 6:16 AM
Are you only returning the nodes you need?

hornetnz
26 Nov 2012, 5:43 AM
Yes the json i'm showing in the response exactly matches that portion of the tree's original json markup.