Hi there,
I am writing a component that involves dragging nodes from the one tree to another, as in the drag-and-drop example given in the demos at http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx. I make all the changes on the client and then commit them to the server when the user presses a button, using the client-side tree.trackChanges() and tree.commitChanges() functions. In my component, only changes to the right-hand tree are kept. Initially, the two trees are the same, and the right-hand one is my "true" version.
After each postback, I need to synchronise the two trees again. The trouble is that I can't find the right place in the page life-cycle to do so. I have tried putting code in the Page_Load() or Page_PreRender() methods, but the trees haven't been updated (with the client-side changes) by that point, so this doesn't work. Can you advise me?
All answers gratefully received,
Ed
I am writing a component that involves dragging nodes from the one tree to another, as in the drag-and-drop example given in the demos at http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx. I make all the changes on the client and then commit them to the server when the user presses a button, using the client-side tree.trackChanges() and tree.commitChanges() functions. In my component, only changes to the right-hand tree are kept. Initially, the two trees are the same, and the right-hand one is my "true" version.
After each postback, I need to synchronise the two trees again. The trouble is that I can't find the right place in the page life-cycle to do so. I have tried putting code in the Page_Load() or Page_PreRender() methods, but the trees haven't been updated (with the client-side changes) by that point, so this doesn't work. Can you advise me?
All answers gratefully received,
Ed