DragDrop (WebGrid to WebTreeview) using WebPaneManager

6 replies. Last post: August 28, 2009 5:22 AM by James
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I want drag Data from WebGrid and drop on unbound WebTreeView. WebGrid and WebTreeView are located in WebPane. Please see attached picture.

Glenn told me few time ago, I have to use DragDropExtender OnDragDrop event handler (not WebTreeView onDragDrop event handler) when using WebPane.

OnDragDrop event (DragDropExtender) has an argument "dropObject". I get the WebTreeview Object with ISGetObject(dropObject.Owner.ControlID). But how can I get the WebTreeViewNode Object?

I have posted a similar request WebGrid with WebDragDropExtender - How can i find out "Drop-Row" to find out on which row OnDragDrop Event is fired.

OnDragDrop event (WebTreeView) has an argument "dropContext". Here I get WebTreeViewNode Object easy with dropContext.ItemObject. I can use this event handler, if I don't define WebTreeView as DropControl in WebDragDropExtender. It works, but the Effect is automaticly set to "Move", if the cursor over a node (else NotAllowed). This means that I can add Childnodes only!

Thanks for help!

 

All times are GMT -5. The time now is 7:37 PM.
Previous Next