Hello
We have a challange with implementing drog and drop on the server side.
On the server code we have Event heandler for NodeDropped server event. This event work well. We need to get 2 node object to make some actions with appropriate objects.
We have following Event Heandler:protected void uwtTree_NodeChanged(object sender, WebTreeNodeEventArgs e){ ... }e.Node - Destination nodee.SourceData - source Node data As string
So we can get destination node object, but the problem is that we can't get source node object. Actually we can have source node data in string, but that is not an option, because Tree control can has few nodes with the same mode data.
So the question is: Do we have any option to get e.SourceNode ?
Please help us resolve this problem.
Hello!
I don't see any built-in mechanism to achieve that purpose.
My suggestion is to handle the Drop event on client side where you can get the source object. With the source object you can, for instance, get the getDataKey that should contain an unique id and store that id in hidden field that you should add to your page. When you are handling the event at server side you can have the source node unique id using the hidden field.
Resume:
* Add an hidden field in your page
* Handle the drop at client side
* Store getDataKey in the hidden field (client side)
* In the handle at server side you can get the source node unique id.
Bye,
Carlos Marcão