Oct 06, 2011, 2:23 PM
DragDrop From Grid To Tree
Hello,
I have problem with drag and drop from grid to tree.
This is the drop target:
Node 1
- leaf 1
- leaf 2
Node 2
- leaf 21
- leaf 22
How to make records from grid to be allowed to be droped only on Node1 items ?
Thanks.
I have problem with drag and drop from grid to tree.
This is the drop target:
Ext.Net.DropTarget DropTarget = new DropTarget { ID = "drop_target", Target = "={id_tree}", Group = "gridDDGroup", NotifyDrop = { Fn = "TreeItemDrop" } };
In NotifyDrop I'm trying to get the node that the record from grid was dropped. How to get this record in NotifyDrop fucntion ?function TreeItemDrop(ddSource, e, data) {
?????? // How to get node
}
And the other problem. Is it posible to restrict the dropzone only to specified nodes (not the entire tree). For example if we have: Node 1
- leaf 1
- leaf 2
Node 2
- leaf 21
- leaf 22
How to make records from grid to be allowed to be droped only on Node1 items ?
Thanks.