Hi I am dragging and dropping nodes on the tree, but i lose the state of the tree during this process after postback. Is there any way of maintianing the state of the tree after drop happens after postback?
Raj
Sorry for the delayed update
I am able to maintian the state on drag and drop now. I am dragging a node, calling the server side Nodeadded event and in this event populating the new node with correct data.
Rajan
Hi,
I am again posting this. This has been a pain for me. After dragging a node and dropping it, how would i maintain the state of tree. Any sample on this would be highly appreciated.
i have really wasted enough time of mine and i am not able to maintain the state of the tree after drag and drop.
I drag a node, drop happens and i can see the node but this is still on the client side, anyhow i store it in hidden field. I update the database using this hidden filed and Now i have to go back to client and have to show the tree with updated data from the server, which i can, but i see my tree collapsed, which is known behaviour.
But can write code which could demonstrate to maintain the tree state after client drag and drop.
My tree is LoadonDemand = manual and inside the WARP.
I know that code would help so many people who are suing your code.
Samples only show drag and drop on the client side. I have seen most of the sample are do not show server side activities after client side events.
Pretty disappointed. :(
Hello,
When you drag and drop nodes of tree you do that on client side and after force post back you back to previous state. You have to implement functionality that after change structure of the tree on client change it and on the server side.
My suggestion is to use list of events that you add all changes on the tree and in post back make same changes on the server side. You can use the client side event Drop and add all dropped nodes ID in hidden field and after post back get it.
Thanks.