DragDrop From Grid To Tree

  1. #1

    DragDrop From Grid To Tree

    Hello,

    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.
  2. #2
    any ideas, or some hints ?
  3. #3
    Hi,

    Hope, this is still actual for you.
    http://forums.ext.net/showthread.php?16810

Similar Threads

  1. DragDrop item information from TreePanel
    By Dominik in forum 2.x Help
    Replies: 1
    Last Post: Jun 01, 2012, 10:31 AM
  2. Replies: 2
    Last Post: Jul 11, 2011, 9:32 PM
  3. Tree Grid
    By dan182 in forum 1.x Help
    Replies: 1
    Last Post: Jan 27, 2011, 10:46 AM
  4. [CLOSED] Problem DragDrop Grid to Grid2
    By xeo4.it in forum 1.x Premium Help
    Replies: 2
    Last Post: Jul 19, 2010, 11:52 AM
  5. [CLOSED] [1.0] DragDrop Grid to Same Grid?
    By state in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 07, 2010, 9:24 AM

Tags for this Thread

Posting Permissions