I have to implement drag and drop functionality on wintree .Here i should be able to drag and drop nodes of the tree in to the multiline textbox.
Basically I have two panels in which ultra tree is in one panel and in the other panel I need to display the details of the selected node in a multiline textbox.So this i implemented in the AfterSelect Event of the Ultratree.At the same time I should be able to drag and drop the other nodes in to the 2nd panel.But the Drag and drop event is not getting fired beacuse the AfterSelect Event is fired when i click on the nodes to drag.Please suggest me is there any way to implement.
I have this same problem! If you have a tree on the left, and a grid on the right that represents a view of the selected treenode, how else would you suggest displaying a gridview that represents the selected node other than handling the node's afterselect event? Given this catch-22 there seems no way to drag another node into the view that represents the node prior to trying to drag another node into this view. This has a BIG effect and is a big problem if there is no way to get SelectionDragStart before AfterSelect or otherwise show the view of one node while dragging another node into that view! - Dave
As I stated originally, handling AfterSelect will not interfere with drag/drop unless you do something that pulls mouse capture away from the control. You mention here that you are "...displaying the details of the selected node in the another panel which is causing the control away from the treeview"; if this means that you are pulling focus off the control, that would certainly explain the problem. I'm not clear on why you need to do focus some other control to accomplish that; please repost with a brief code sample that demonstrates the problem and we will try to help.
Yah, in Afterselect event I am displaying the details of the selected node in the another panel which is causing the control away from the treeview.
As per the requirement, I should be able to drag other nodes in to the details of the selected node(i.e. the panel).
I am trying to implement the drag and drop in "SelectionDragStart" event.But as the "Aftreselect" event is fired when i click on the node,I am not able to implement the drag & drop functionality here.
could you please guide me if any other way to implement this.
Thanx in advance.
Handling the AfterSelect event should have no effect on drag & drop functionality, unless you do something in AfterSelect that takes the mouse capture away from the control, which it sounds like you are not doing. Please be more specific about what you mean by, "...the Drag and drop event is not getting fired...", i.e., the exact name of the event, which control it is expected to fire for, and how you determined that handling the AfterSelect event is what causes the problem.